Skip to main content

Crate rand_rgb

Crate rand_rgb 

Source

Structs§

ColorRange
User-provided channel bounds for random generation.
RandomColor
Represents a randomly generated rgba() color value.

Enums§

ColorError
Error returned when color bounds are invalid.

Functions§

random_color
Generates a random color using default bounds.
random_color_in
Generates a random color using custom bounds.
random_color_in_with_rng
Generates a random color using custom bounds and a caller-provided RNG.
random_color_with_rng
Generates a random color using default bounds and a caller-provided RNG.