Struct matdesign_color::MatColor[][src]

pub struct MatColor;
Expand description

Main access point to all colors.

Implementations

Creates a color from a MatColorVariant and an accent MatColorAccent checks if its combination is valid. For example, not every color has every type of accent. Prefer using the const fn variants if you can. In case of MatColorVariant::Black or MatColorVariant::White, the accent value is ignored.

Access to MatColorRed

Access to MatColorPink

Access to MatColorPurple

Access to MatColorIndigo

Access to MatColorBlue

Access to MatColorCyan

Access to MatColorTeal

Access to MatColorGreen

Access to MatColorLime

Access to MatColorYellow

Access to MatColorAmber

Access to MatColorOrange

Access to MatColorBrown

Access to MatColorGray

Access to MatColorBlueGray

Black -> 0x000000

White -> 0xFFFFFF

Checks if the specifiec color variant has all the accents.

Returns false for MatColorVariant::Black, MatColorVariant::White, MatColorVariant::Brown, MatColorVariant::Gray, MatColorVariant::BlueGray

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.