# Blend and Fill Block ## Fill Block with Colors  "Fill Block with Colors" will fill a block with colors. • "**Block**" : requires an Odyssey Block Structure input. • "**Color**" : requires an Odyssey Color Structure, such as "Get Color" or "Make Odyssey Brush Color into...". • "**Area**" : requires an Odyssey Rectangle Structure (not mandatory). • "**Preserve Alpha**" : will preserve the alpha channel of your block (wich means its opacity and transparence) to combine it with a chosen color. The return value is an Odyssey Block Structure. *Example:*  **Top image: Preserve Alpha On | Bottom image: Preserve Alpha Off*  ----- ## Blend Blocks  "Blend" is used to mix together 2 stamps with various blend and alpha modes. • “**Top**” & “**Back**” : The behavior induced by Top and Back will depend on the size of the stamps. If the Top block is bigger than the Back block, Back block will act lile a stencil and crop Top block.  If Top block is smaller than Back block, both will be visible.  • "**Top Area**" : Requires an Odyssey Rectangle Structure. Can be used to crop a piece of Top block with the node "Make Odyssey Rectangle". • “**X**” & “**Y**” : These Integer input can pan Top block. Value is pixels. • “**Opacity**”: This Float input affects the transparency of Top block (0 = invisble | 1 = opaque). • “**Blending mode**”: You can choose a way to blend Top and Back block. • “**Alpha mode**”: You can choose a way to play with the Alpha mode between Top and Back block. On the other hand, the input "Block" and the output "Return value" require an Odyssey Block Reference Structure. ### Use case 1. Default settings We have two textures : a transparent one with a green and blue squiggle ("Back Texture"), and another yellowish texture ("Top Texture").   If we just connect both textures as below and do not change any Blending or Alpha Modes...  ... we will obtain this result :  Only the yellowish Top Texture will be visible. 2. Modifying Blending Mode If we modify the Blending Mode from "Normal" to "Multiply"...  ... yellowish Top Texture will blend its colors on Green and Blue Back Texture :  3. Modifying Alpha Mode On the contrary, if Blending Mode is set to Normal and we change Alpha Mode to "Back"...  ... Green and Blue Back Texture will act like a stencil on Yellowish Top Texture :  4. Modifying both Alpha and Blending Modes If we use "Multiply" Blending Mode and "Back" Alpha Mode like below...  ... we will obtain this result :  ------ ## Blend Blocks with Color  This node is a little like a mix between the two previous nodes, as it will allow you to blend a color on top of a block. • "**Color**" : Requires an Odyssey Color Structure, such as "Get Color Modifier". • "**Block**" : Requires an Odyssey Block Structure, like a converted Texture 2D. • "**Area**" : Requires an Odyssey Rectangle Structure, like "Make Odyssey Rectangle". It will be used to crop Block input. • "**Opacity**" : Requires a Float input. Will lower the opacity of Color. Like we saw in the explanations about "Blend Block", the results will depends on the settings chosen in Alpha and Blending Modes. Here are a few different examples : 