gewel.color.TRANSPARENT
- gewel.color.TRANSPARENT = Color(red=0.0, green=0.0, blue=0.0, alpha=0.0)
This is a completely transparent color. It is useful when there are components of a drawable object that we don’t want to render. It is also commonly used as a default color for portions of a drawable object.
For example, the class
Boxhas both a color used to draw the border of the box and a fill color to fill it with. Either can be transparent as follows:from gewel.draw import Box from gewel.color import RED, TRANSPARENT # A red box that is not filled with any color. box1 = Box(color=RED, fill_color=TRANSPARENT) # A box filled with red but with no border. box2 = Box(color=TRANSPARENT, fill_color=RED)