-
Notifications
You must be signed in to change notification settings - Fork 0
class_color
reduz edited this page Feb 23, 2014
·
11 revisions
Color in RGBA format.
- Color blend ( Color over )
- Color contrasted ( )
- real gray ( )
- Color inverted ( )
- Color linear_interpolate ( Color b, real t )
- int to_32 ( )
- int to_ARGB32 ( )
- String to_html ( bool with_alpha=True )
- void Color ( real r, real g, real b, real a )
- void Color ( real r, real g, real b )
A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point, ranging from 0 to 1.
- Color contrasted ( ) \ Return the most contrasting color with this one.
- Color linear_interpolate ( Color b, real t ) \ Return the linear interpolation with another color.