Struct cssparser::RGBA [] [src]

pub struct RGBA {
    pub red: f32,
    pub green: f32,
    pub blue: f32,
    pub alpha: f32,
}

A color with red, green, blue, and alpha components.

Fields

The red channel. Nominally in 0.0 ... 1.0.

The green channel. Nominally in 0.0 ... 1.0.

The blue channel. Nominally in 0.0 ... 1.0.

The alpha (opacity) channel. Clamped to 0.0 ... 1.0.

Trait Implementations

impl Clone for RGBA
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for RGBA
[src]

impl PartialEq for RGBA
[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 RGBA
[src]

Formats the value using the given formatter.

impl ToCss for RGBA
[src]

Serialize self in CSS syntax, writing to dest.

Serialize self in CSS syntax and return a string. Read more

Serialize self in CSS syntax and return a result compatible with std::fmt::Show. Read more