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
r: i32
The red component, in the [0-255] range.
g: i32
The green component, in the [0-255] range.
b: i32
The blue component, in the [0-255] range.
a: Option<f64>
The alpha component, in the [0-1] range (default: 1).
Trait Implementations
impl Clone for Rgba
[src]
fn clone(&self) -> Rgba
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more