Skip to main content

Colors

Struct Colors 

Source
pub struct Colors;
Expand description

Defines a set of predefined colors.

Implementations§

Source§

impl Colors

Source

pub const ALICE_BLUE: Color

Gets a color with an ARGB value of #fff0f8ff.

Source

pub const ANTIQUE_WHITE: Color

Gets a color with an ARGB value of #fffaebd7.

Source

pub const AQUA: Color

Gets a color with an ARGB value of #ff00ffff.

Source

pub const AQUAMARINE: Color

Gets a color with an ARGB value of #ff7fffd4.

Source

pub const AZURE: Color

Gets a color with an ARGB value of #fff0ffff.

Source

pub const BEIGE: Color

Gets a color with an ARGB value of #fff5f5dc.

Source

pub const BISQUE: Color

Gets a color with an ARGB value of #ffffe4c4.

Source

pub const BLACK: Color

Gets a color with an ARGB value of #ff000000.

Source

pub const BLANCHED_ALMOND: Color

Gets a color with an ARGB value of #ffffebcd.

Source

pub const BLUE: Color

Gets a color with an ARGB value of #ff0000ff.

Source

pub const BLUE_VIOLET: Color

Gets a color with an ARGB value of #ff8a2be2.

Source

pub const BROWN: Color

Gets a color with an ARGB value of #ffa52a2a.

Source

pub const BURLY_WOOD: Color

Gets a color with an ARGB value of #ffdeb887.

Source

pub const CADET_BLUE: Color

Gets a color with an ARGB value of #ff5f9ea0.

Source

pub const CHARTREUSE: Color

Gets a color with an ARGB value of #ff7fff00.

Source

pub const CHOCOLATE: Color

Gets a color with an ARGB value of #ffd2691e.

Source

pub const CORAL: Color

Gets a color with an ARGB value of #ffff7f50.

Source

pub const CORNFLOWER_BLUE: Color

Gets a color with an ARGB value of #ff6495ed.

Source

pub const CORNSILK: Color

Gets a color with an ARGB value of #fffff8dc.

Source

pub const CRIMSON: Color

Gets a color with an ARGB value of #ffdc143c.

Source

pub const CYAN: Color

Gets a color with an ARGB value of #ff00ffff.

Source

pub const DARK_BLUE: Color

Gets a color with an ARGB value of #ff00008b.

Source

pub const DARK_CYAN: Color

Gets a color with an ARGB value of #ff008b8b.

Source

pub const DARK_GOLDENROD: Color

Gets a color with an ARGB value of #ffb8860b.

Source

pub const DARK_GRAY: Color

Gets a color with an ARGB value of #ffa9a9a9.

Source

pub const DARK_GREEN: Color

Gets a color with an ARGB value of #ff006400.

Source

pub const DARK_KHAKI: Color

Gets a color with an ARGB value of #ffbdb76b.

Source

pub const DARK_MAGENTA: Color

Gets a color with an ARGB value of #ff8b008b.

Source

pub const DARK_OLIVE_GREEN: Color

Gets a color with an ARGB value of #ff556b2f.

Source

pub const DARK_ORANGE: Color

Gets a color with an ARGB value of #ffff8c00.

Source

pub const DARK_ORCHID: Color

Gets a color with an ARGB value of #ff9932cc.

Source

pub const DARK_RED: Color

Gets a color with an ARGB value of #ff8b0000.

Source

pub const DARK_SALMON: Color

Gets a color with an ARGB value of #ffe9967a.

Source

pub const DARK_SEA_GREEN: Color

Gets a color with an ARGB value of #ff8fbc8f.

Source

pub const DARK_SLATE_BLUE: Color

Gets a color with an ARGB value of #ff483d8b.

Source

pub const DARK_SLATE_GRAY: Color

Gets a color with an ARGB value of #ff2f4f4f.

Source

pub const DARK_TURQUOISE: Color

Gets a color with an ARGB value of #ff00ced1.

Source

pub const DARK_VIOLET: Color

Gets a color with an ARGB value of #ff9400d3.

Source

pub const DEEP_PINK: Color

Gets a color with an ARGB value of #ffff1493.

Source

pub const DEEP_SKY_BLUE: Color

Gets a color with an ARGB value of #ff00bfff.

Source

pub const DIM_GRAY: Color

Gets a color with an ARGB value of #ff696969.

Source

pub const DODGER_BLUE: Color

Gets a color with an ARGB value of #ff1e90ff.

Source

pub const FIREBRICK: Color

Gets a color with an ARGB value of #ffb22222.

Source

pub const FLORAL_WHITE: Color

Gets a color with an ARGB value of #fffffaf0.

Source

pub const FOREST_GREEN: Color

Gets a color with an ARGB value of #ff228b22.

Source

pub const FUCHSIA: Color

Gets a color with an ARGB value of #ffff00ff.

Source

pub const GAINSBORO: Color

Gets a color with an ARGB value of #ffdcdcdc.

Source

pub const GHOST_WHITE: Color

Gets a color with an ARGB value of #fff8f8ff.

Source

pub const GOLD: Color

Gets a color with an ARGB value of #ffffd700.

Source

pub const GOLDENROD: Color

Gets a color with an ARGB value of #ffdaa520.

Source

pub const GRAY: Color

Gets a color with an ARGB value of #ff808080.

Source

pub const GREEN: Color

Gets a color with an ARGB value of #ff008000.

Source

pub const GREEN_YELLOW: Color

Gets a color with an ARGB value of #ffadff2f.

Source

pub const HONEYDEW: Color

Gets a color with an ARGB value of #fff0fff0.

Source

pub const HOT_PINK: Color

Gets a color with an ARGB value of #ffff69b4.

Source

pub const INDIAN_RED: Color

Gets a color with an ARGB value of #ffcd5c5c.

Source

pub const INDIGO: Color

Gets a color with an ARGB value of #ff4b0082.

Source

pub const IVORY: Color

Gets a color with an ARGB value of #fffffff0.

Source

pub const KHAKI: Color

Gets a color with an ARGB value of #fff0e68c.

Source

pub const LAVENDER: Color

Gets a color with an ARGB value of #ffe6e6fa.

Source

pub const LAVENDER_BLUSH: Color

Gets a color with an ARGB value of #fffff0f5.

Source

pub const LAWN_GREEN: Color

Gets a color with an ARGB value of #ff7cfc00.

Source

pub const LEMON_CHIFFON: Color

Gets a color with an ARGB value of #fffffacd.

Source

pub const LIGHT_BLUE: Color

Gets a color with an ARGB value of #ffadd8e6.

Source

pub const LIGHT_CORAL: Color

Gets a color with an ARGB value of #fff08080.

Source

pub const LIGHT_CYAN: Color

Gets a color with an ARGB value of #ffe0ffff.

Source

pub const LIGHT_GOLDENROD_YELLOW: Color

Gets a color with an ARGB value of #fffafad2.

Source

pub const LIGHT_GRAY: Color

Gets a color with an ARGB value of #ffd3d3d3.

Source

pub const LIGHT_GREEN: Color

Gets a color with an ARGB value of #ff90ee90.

Source

pub const LIGHT_PINK: Color

Gets a color with an ARGB value of #ffffb6c1.

Source

pub const LIGHT_SALMON: Color

Gets a color with an ARGB value of #ffffa07a.

Source

pub const LIGHT_SEA_GREEN: Color

Gets a color with an ARGB value of #ff20b2aa.

Source

pub const LIGHT_SKY_BLUE: Color

Gets a color with an ARGB value of #ff87cefa.

Source

pub const LIGHT_SLATE_GRAY: Color

Gets a color with an ARGB value of #ff778899.

Source

pub const LIGHT_STEEL_BLUE: Color

Gets a color with an ARGB value of #ffb0c4de.

Source

pub const LIGHT_YELLOW: Color

Gets a color with an ARGB value of #ffffffe0.

Source

pub const LIME: Color

Gets a color with an ARGB value of #ff00ff00.

Source

pub const LIME_GREEN: Color

Gets a color with an ARGB value of #ff32cd32.

Source

pub const LINEN: Color

Gets a color with an ARGB value of #fffaf0e6.

Source

pub const MAGENTA: Color

Gets a color with an ARGB value of #ffff00ff.

Source

pub const MAROON: Color

Gets a color with an ARGB value of #ff800000.

Source

pub const MEDIUM_AQUAMARINE: Color

Gets a color with an ARGB value of #ff66cdaa.

Source

pub const MEDIUM_BLUE: Color

Gets a color with an ARGB value of #ff0000cd.

Source

pub const MEDIUM_ORCHID: Color

Gets a color with an ARGB value of #ffba55d3.

Source

pub const MEDIUM_PURPLE: Color

Gets a color with an ARGB value of #ff9370db.

Source

pub const MEDIUM_SEA_GREEN: Color

Gets a color with an ARGB value of #ff3cb371.

Source

pub const MEDIUM_SLATE_BLUE: Color

Gets a color with an ARGB value of #ff7b68ee.

Source

pub const MEDIUM_SPRING_GREEN: Color

Gets a color with an ARGB value of #ff00fa9a.

Source

pub const MEDIUM_TURQUOISE: Color

Gets a color with an ARGB value of #ff48d1cc.

Source

pub const MEDIUM_VIOLET_RED: Color

Gets a color with an ARGB value of #ffc71585.

Source

pub const MIDNIGHT_BLUE: Color

Gets a color with an ARGB value of #ff191970.

Source

pub const MINT_CREAM: Color

Gets a color with an ARGB value of #fff5fffa.

Source

pub const MISTY_ROSE: Color

Gets a color with an ARGB value of #ffffe4e1.

Source

pub const MOCCASIN: Color

Gets a color with an ARGB value of #ffffe4b5.

Source

pub const NAVAJO_WHITE: Color

Gets a color with an ARGB value of #ffffdead.

Source

pub const NAVY: Color

Gets a color with an ARGB value of #ff000080.

Source

pub const OLD_LACE: Color

Gets a color with an ARGB value of #fffdf5e6.

Source

pub const OLIVE: Color

Gets a color with an ARGB value of #ff808000.

Source

pub const OLIVE_DRAB: Color

Gets a color with an ARGB value of #ff6b8e23.

Source

pub const ORANGE: Color

Gets a color with an ARGB value of #ffffa500.

Source

pub const ORANGE_RED: Color

Gets a color with an ARGB value of #ffff4500.

Source

pub const ORCHID: Color

Gets a color with an ARGB value of #ffda70d6.

Source

pub const PALE_GOLDENROD: Color

Gets a color with an ARGB value of #ffeee8aa.

Source

pub const PALE_GREEN: Color

Gets a color with an ARGB value of #ff98fb98.

Source

pub const PALE_TURQUOISE: Color

Gets a color with an ARGB value of #ffafeeee.

Source

pub const PALE_VIOLET_RED: Color

Gets a color with an ARGB value of #ffdb7093.

Source

pub const PAPAYA_WHIP: Color

Gets a color with an ARGB value of #ffffefd5.

Source

pub const PEACH_PUFF: Color

Gets a color with an ARGB value of #ffffdab9.

Source

pub const PERU: Color

Gets a color with an ARGB value of #ffcd853f.

Source

pub const PINK: Color

Gets a color with an ARGB value of #ffffc0cb.

Source

pub const PLUM: Color

Gets a color with an ARGB value of #ffdda0dd.

Source

pub const POWDER_BLUE: Color

Gets a color with an ARGB value of #ffb0e0e6.

Source

pub const PURPLE: Color

Gets a color with an ARGB value of #ff800080.

Source

pub const RED: Color

Gets a color with an ARGB value of #ffff0000.

Source

pub const ROSY_BROWN: Color

Gets a color with an ARGB value of #ffbc8f8f.

Source

pub const ROYAL_BLUE: Color

Gets a color with an ARGB value of #ff4169e1.

Source

pub const SADDLE_BROWN: Color

Gets a color with an ARGB value of #ff8b4513.

Source

pub const SALMON: Color

Gets a color with an ARGB value of #fffa8072.

Source

pub const SANDY_BROWN: Color

Gets a color with an ARGB value of #fff4a460.

Source

pub const SEA_GREEN: Color

Gets a color with an ARGB value of #ff2e8b57.

Source

pub const SEA_SHELL: Color

Gets a color with an ARGB value of #fffff5ee.

Source

pub const SIENNA: Color

Gets a color with an ARGB value of #ffa0522d.

Source

pub const SILVER: Color

Gets a color with an ARGB value of #ffc0c0c0.

Source

pub const SKY_BLUE: Color

Gets a color with an ARGB value of #ff87ceeb.

Source

pub const SLATE_BLUE: Color

Gets a color with an ARGB value of #ff6a5acd.

Source

pub const SLATE_GRAY: Color

Gets a color with an ARGB value of #ff708090.

Source

pub const SNOW: Color

Gets a color with an ARGB value of #fffffafa.

Source

pub const SPRING_GREEN: Color

Gets a color with an ARGB value of #ff00ff7f.

Source

pub const STEEL_BLUE: Color

Gets a color with an ARGB value of #ff4682b4.

Source

pub const TAN: Color

Gets a color with an ARGB value of #ffd2b48c.

Source

pub const TEAL: Color

Gets a color with an ARGB value of #ff008080.

Source

pub const THISTLE: Color

Gets a color with an ARGB value of #ffd8bfd8.

Source

pub const TOMATO: Color

Gets a color with an ARGB value of #ffff6347.

Source

pub const TRANSPARENT: Color

Gets a color with an ARGB value of #00ffffff.

Source

pub const TURQUOISE: Color

Gets a color with an ARGB value of #ff40e0d0.

Source

pub const VIOLET: Color

Gets a color with an ARGB value of #ffee82ee.

Source

pub const WHEAT: Color

Gets a color with an ARGB value of #fff5deb3.

Source

pub const WHITE: Color

Gets a color with an ARGB value of #ffffffff.

Source

pub const WHITE_SMOKE: Color

Gets a color with an ARGB value of #fff5f5f5.

Source

pub const YELLOW: Color

Gets a color with an ARGB value of #ffffff00.

Source

pub const YELLOW_GREEN: Color

Gets a color with an ARGB value of #ff9acd32.

Trait Implementations§

Source§

impl MarkupTyped for Colors

Source§

const MARKUP: &'static MarkupType

The markup metadata of the type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.