Method summary
- __init__(self)
- get_hsva(self)
- get_rgb255(self)
- get_rgba(self)
- set_hsva(self, h, s, v, a)
- set_lerp(self, f, A, B)
- set_rgb(self, r, g, b)
- set_rgba(self, r, g, b, a)
Methods
- __init__(self)
- get_hsva(self)
- get_rgb255(self)
returns a tuple (r,g,b) of 3 integers in range [0..255] representing the color.
- get_rgba(self)
- set_hsva(self, h, s, v, a)
- set_lerp(self, f, A, B)
Set self to result of linear interpolation between colors A and B in HSVA space.
The weight f is from [0..1], with f=0 giving A and f=1 giving color B.
- set_rgb(self, r, g, b)
- set_rgba(self, r, g, b, a)