Struct random_color::RandomColor [] [src]

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

Fields

Can take values of Color enum.

Can take values of Luminosity enum.

Can take any value of i32.

Can take values f32 from 0 to 1.

Methods

impl RandomColor
[src]

[src]

Generates a new RandomColor

[src]

Sets RandomColor.hue colorspace.

[src]

Sets RandomColor.luminosity.

[src]

Sets RandomColor.seed used to generate a color.

[src]

Sets RandomColor.aplha.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Debug for RandomColor
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for RandomColor
[src]

[src]

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

[src]

This method tests for !=.