Struct cdp::dom::Rgba [] [src]

pub struct Rgba {
    pub r: i32,
    pub g: i32,
    pub b: i32,
    pub a: Option<f64>,
}

A structure holding an RGBA color.

Fields

The red component, in the [0-255] range.

The green component, in the [0-255] range.

The blue component, in the [0-255] range.

The alpha component, in the [0-1] range (default: 1).

Trait Implementations

impl Clone for Rgba
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Rgba
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Rgba
[src]

[src]

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

[src]

This method tests for !=.