Module lux::color
[−]
[src]
Color creation functions and some named defaults.
Statics
Traits
Color |
A |
Functions
hex_rgb |
Convertes a u32 to a color by treating the last 3 bytes as rgb tripples. |
hex_rgba |
Convertes a u32 to a color by treating the 4 bytes as rgb tripples. |
hsv |
Constructs a color from Hue, Saturation and Value components. |
hsva |
Same as |
rgb |
Constructs a color from R, G, and B components. |
rgba |
Constructs a color from R, G, B, and A components. |