logo
pub struct Alpha<C: ColorSpace> { /* private fields */ }
Expand description

Represents the color with aplha component

Implementations

Create color with alpha

Trait Implementations

Adjust hue component of color with delta

Rotate hue component with 180 degrees

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Retrieve the alpha component

Retrieve the alpha component as opacity

Retrieve the alpha component as transparency

Retrieve the color component

Set the color component

Retrieve the color and aplha components

Invert color

Lighten the color with delta

Darken the color with delta

Create color with rounded values

Saturate the color with delta

Desaturate the color with delta

Set the alpha component

Set the alpha component as opacity

Set the alpha component as transparency

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.