Struct style::values::animated::color::RGBA [] [src]

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

An animated RGBA color.

Unlike in computed values, each component value may exceed the range [0.0, 1.0].

Fields

The red component.

The green component.

The blue component.

The alpha component.

Methods

impl RGBA
[src]

[src]

Returns a transparent color.

[src]

Returns a new color.

Trait Implementations

impl MallocSizeOf for RGBA
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

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

impl Debug for RGBA
[src]

[src]

Formats the value using the given formatter. Read more

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 !=.

impl ToAnimatedZero for RGBA
[src]

[src]

Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation's "by-animation" where SMIL first interpolates from the zero value to the 'by' value, and then adds the result to the underlying value. Read more

impl Animate for RGBA
[src]

Unlike Animate for computed colors, we don't clamp any component values.

FIXME(nox): Why do computed colors even implement Animate?

[src]

Animate a value towards another one, given an animation procedure.

impl ComputeSquaredDistance for RGBA
[src]

[src]

Computes the squared distance between two animatable values.