Struct glm_color::srgb::Srgb [] [src]

pub struct Srgb { /* fields omitted */ }

The sRGB color space.

See

Wikipedia page sRGB, from where the numbers used in conversion between linear RGB and sRGB are got.

Methods

impl Srgb
[src]

Creates an Srgb value.

Parameters are clampped to range [0, 1].

Returns the value of red channel of self.

Returns the value of green channel of self.

Returns the value of blue channel of self.

Re-interprets a reference of Srgb to Vec3.

Trait Implementations

impl Copy for Srgb
[src]

impl Clone for Srgb
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Srgb
[src]

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

This method tests for !=.

impl Debug for Srgb
[src]

Formats the value using the given formatter.

impl Rand for Srgb
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl Eq for Srgb
[src]

impl ApproxEq for Srgb
[src]

Returns true if the difference between x and y is less than max_diff. Read more

Returns true if the difference between x and y is less than machine epsilon. Read more

impl ColorSpace for Srgb
[src]

Constructs from color value rgb in RGB color space.

Converts self to a color value in RGB color space.