10.15. rgba#
- class itom.rgba(r, g, b, alpha=255)#
Color value object (RGB + optional alpha channel).
Creates a new color value from red, green, blue and optional alpha. If any value > 255 is passed as argument, its modulo with
256
is taken instead.The
rgba
object implements many methods of the number protocol, such that it becomes possible to add, subtract, multiply… two colors. In most cases these operations are executed for each color component independently.- Parameters:
Notes
For a gray value set all colors to the same value.