Struct asefile::ColorPaletteEntry[][src]

pub struct ColorPaletteEntry { /* fields omitted */ }
Expand description

A single entry in a ColorPalette.

Implementations

The id of this entry is the same as its index in the palette.

Get the RGBA components as an array. Most color libraries allow you to build an instance of their color type from such an array.

The red channel of the color.

The green channel of the color.

The blue channel of the color.

Alpha value of this color (0 = fully transparent, 255 = fully opaque).

The color name. Seems to be usually empty in practice.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.