Color¶
Color class with 148 named colors and RGBA support.
color
¶
Color system for cesiumkit, matching all CesiumJS named colors.
Color
¶
Bases: CesiumBase
Represents a Cesium color with RGBA components (0.0 to 1.0).
with_alpha(alpha)
¶
Return a new Color with the given alpha value.
from_bytes(red, green, blue, alpha=255)
classmethod
¶
Create a Color from byte values (0-255).
from_css(css_string)
classmethod
¶
Create a Color from a CSS color string.
Supports #RRGGBB and #RRGGBBAA hex formats.
from_random(red=None, green=None, blue=None, alpha=None)
classmethod
¶
Create a Color with random components. Fixed values can be provided.