How do I create a transparent rectangle
Monkey Forums/Monkey Beginners/How do I create a transparent rectangle
| ||
How do I create a white rectangle box that's transparent in the middle? |
| ||
Do you mean the entire thing, or just the outline (Wireframe quad). For a transparent rectangle, use 'DrawRect' and 'SetAlpha' (As well as 'SetBlend', depending on what you're doing). For a wire-frame look, you could either use custom OpenGL code, or render it using lines yourself. To manually draw the rectangle's lines, you can use the 'DrawLine' command. Here's an example using standard Mojo: Press space to cycle through the modes. |
| ||
Thanks ImmutableOctet(SKNG). That worked! |