Overview
TheColor type represents colors in Freya. You can create colors using RGB, ARGB, HSV, hex strings, or tuples.
Creating Colors
From RGB
Create a color with RGB values (0-255) and full opacity:From ARGB
Create a color with alpha (opacity) and RGB values:From Alpha (f32) and RGB
Create a color with alpha as a float (0.0-1.0):From Hex String
Create a color from a hex string:From HSV
Create a color from HSV (Hue, Saturation, Value):From Tuples
Colors can be created directly from tuples:From u32
Create a color from a 32-bit integer:Predefined Colors
Freya provides common predefined colors:Color Manipulation
Get Color Components
Modify Alpha
Convert to/from HSV
Color Multiplication
Multiply color components by a scalar:String Representations
Hex String
RGB String
Fill Type
TheFill enum extends colors with gradient support: