Struct random_color::RandomColor[][src]

pub struct RandomColor {
    pub hue: Option<ColorInformation>,
    pub luminosity: Option<Luminosity>,
    pub seed: Option<i64>,
    pub alpha: Option<f32>,
}

Fields

Can take values of Color enum.

Can take values of Luminosity enum.

Can take any value of i64.

Can take values f32 from 0 to 1.

Methods

impl RandomColor
[src]

Generates a new RandomColor

Sets RandomColor.hue colorspace.

Sets RandomColor.luminosity.

Sets RandomColor.seed used to generate a color.

Sets RandomColor.aplha to the value passed if it's lower than 1.0.

Sets RandomColor.alpha to None, aka random.

Trait Implementations

impl Debug for RandomColor
[src]

Formats the value using the given formatter. Read more

impl PartialEq for RandomColor
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for RandomColor

impl Sync for RandomColor