# Blocks A Block is mostly defined by its width and height. ## From Texture 2D to Odyssey Block Reference This node is automatically created when you connect a Texture 2D asset to an input "Block". It converts your Texture 2D into an "Odyssey Block Reference" to be used in your Odyssey Brush. ![](data/odysseybrush-nodes-block-to.png) ## Create Block ![](data/odysseybrush-nodes-block-create.png) Create a Block whose the return value is an "Odyssey Block Reference" (to be connected to a Block input). Basically, it makes an empty Block to be filled later with a color. "**Width** | **Height**" : require a size in pixels as an Integer to create the block. "**Color Model** | **Channel Depth**" : choose the color model and channel depth from the list, or connect the respective input. -------- # Rectangles A rectangle is specifc area inside a Block. Rectangles have a size (width / height) and a starting point (X / Y). These 4 values are in pixel (integers). In the following examples, we will use this stamp as a block, which is 128*128. ![](data/odysseybrush-nodes-block-rectangle-example01.png) If I draw with this brush, with a very basic Blueprint, this is what we get: ![](data/odysseybrush-nodes-block-rectangle-example01-bp.png) ![](data/odysseybrush-nodes-block-rectangle-example01-draw.png) ## Crop Block ![](data/odysseybrush-nodes-block-crop.png) This node will allow you to crop the Block to make it smaller. The "Area" input needs an Odyssey Rectangle Structure. The output returns an "Odyssey Block Reference". ## Make Odyssey Rectangle ![](data/odysseybrush-nodes-block-make-rectangle.png) Use this node to make a Rectangle with X-Y coordinates and a specific size. By default, X Y is equal to 0 and correspond to the top left corner of the Block. "Make Odysey Rectangle" must be then connected to the node "Crop Block". ### First Case : Width and Height = 20px | Y and X = 0 ![](data/odysseybrush-nodes-block-rectangle-example02.png) ![](data/odysseybrush-nodes-block-rectangle-example02-bp.png) ![](data/odysseybrush-nodes-block-rectangle-example02-draw.png) ### Second Case : Width and Height = 50px | Y and X = 60px ![](data/odysseybrush-nodes-block-rectangle-example03.png) ![](data/odysseybrush-nodes-block-rectangle-example03-bp.png) ![](data/odysseybrush-nodes-block-rectangle-example03-draw.png) ## Get Block Rectangle ![](data/odysseybrush-nodes-block-get-rectangle.png) This node will turn a Block into a rectangle. ## Break Odyssey Rectangle ![](data/odysseybrush-nodes-block-break-rectangle.png) This node will break a Rectangle to get its size and coordinates.