Struct embedded_graphics::pixelcolor::Rgb565
source · pub struct Rgb565(_);
Expand description
Rgb565 color.
Use the methods provided by the RgbColor
trait to access
individual color channels and predefined color constants.
See the module-level documentation for more information about conversion between this type and raw data.
Implementations§
Trait Implementations§
source§impl ColorMapping for Rgb565
impl ColorMapping for Rgb565
source§fn char_to_color(c: char) -> Self
fn char_to_color(c: char) -> Self
C
.source§fn color_to_char(color: Self) -> char
fn color_to_char(color: Self) -> char
C
into a char.source§const NONE_COLOR: Rgb888 = _
const NONE_COLOR: Rgb888 = _
source§impl From<BinaryColor> for Rgb565
impl From<BinaryColor> for Rgb565
source§fn from(color: BinaryColor) -> Rgb565
fn from(color: BinaryColor) -> Rgb565
source§impl From<Rgb565> for BinaryColor
impl From<Rgb565> for BinaryColor
source§fn from(color: Rgb565) -> BinaryColor
fn from(color: Rgb565) -> BinaryColor
source§impl Ord for Rgb565
impl Ord for Rgb565
source§impl PartialEq<Rgb565> for Rgb565
impl PartialEq<Rgb565> for Rgb565
source§impl PartialOrd<Rgb565> for Rgb565
impl PartialOrd<Rgb565> for Rgb565
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl RgbColor for Rgb565
impl RgbColor for Rgb565
source§const YELLOW: Rgb565 = Self::new(Self::MAX_R, Self::MAX_G, 0)
const YELLOW: Rgb565 = Self::new(Self::MAX_R, Self::MAX_G, 0)
source§const MAGENTA: Rgb565 = Self::new(Self::MAX_R, 0, Self::MAX_B)
const MAGENTA: Rgb565 = Self::new(Self::MAX_R, 0, Self::MAX_B)
source§impl WebColors for Rgb565
impl WebColors for Rgb565
Named web colors.
source§const CSS_ALICE_BLUE: Rgb565 = Self::with_rgb888(240, 248, 255)
const CSS_ALICE_BLUE: Rgb565 = Self::with_rgb888(240, 248, 255)
Alice Blue
source§const CSS_ANTIQUE_WHITE: Rgb565 = Self::with_rgb888(250, 235, 215)
const CSS_ANTIQUE_WHITE: Rgb565 = Self::with_rgb888(250, 235, 215)
Antique White
source§const CSS_AQUAMARINE: Rgb565 = Self::with_rgb888(127, 255, 212)
const CSS_AQUAMARINE: Rgb565 = Self::with_rgb888(127, 255, 212)
Aquamarine
source§const CSS_BISQUE: Rgb565 = Self::with_rgb888(255, 228, 196)
const CSS_BISQUE: Rgb565 = Self::with_rgb888(255, 228, 196)
Bisque
source§const CSS_BLANCHED_ALMOND: Rgb565 = Self::with_rgb888(255, 235, 205)
const CSS_BLANCHED_ALMOND: Rgb565 = Self::with_rgb888(255, 235, 205)
Blanched Almond
source§const CSS_BLUE_VIOLET: Rgb565 = Self::with_rgb888(138, 43, 226)
const CSS_BLUE_VIOLET: Rgb565 = Self::with_rgb888(138, 43, 226)
Blue Violet
source§const CSS_BURLY_WOOD: Rgb565 = Self::with_rgb888(222, 184, 135)
const CSS_BURLY_WOOD: Rgb565 = Self::with_rgb888(222, 184, 135)
Burly Wood
source§const CSS_CADET_BLUE: Rgb565 = Self::with_rgb888(95, 158, 160)
const CSS_CADET_BLUE: Rgb565 = Self::with_rgb888(95, 158, 160)
Cadet Blue
source§const CSS_CHARTREUSE: Rgb565 = Self::with_rgb888(127, 255, 0)
const CSS_CHARTREUSE: Rgb565 = Self::with_rgb888(127, 255, 0)
Chartreuse
source§const CSS_CHOCOLATE: Rgb565 = Self::with_rgb888(210, 105, 30)
const CSS_CHOCOLATE: Rgb565 = Self::with_rgb888(210, 105, 30)
Chocolate
source§const CSS_CORNFLOWER_BLUE: Rgb565 = Self::with_rgb888(100, 149, 237)
const CSS_CORNFLOWER_BLUE: Rgb565 = Self::with_rgb888(100, 149, 237)
Cornflower Blue
source§const CSS_CORNSILK: Rgb565 = Self::with_rgb888(255, 248, 220)
const CSS_CORNSILK: Rgb565 = Self::with_rgb888(255, 248, 220)
Cornsilk
source§const CSS_CRIMSON: Rgb565 = Self::with_rgb888(220, 20, 60)
const CSS_CRIMSON: Rgb565 = Self::with_rgb888(220, 20, 60)
Crimson
source§const CSS_DARK_BLUE: Rgb565 = Self::with_rgb888(0, 0, 139)
const CSS_DARK_BLUE: Rgb565 = Self::with_rgb888(0, 0, 139)
Dark Blue
source§const CSS_DARK_CYAN: Rgb565 = Self::with_rgb888(0, 139, 139)
const CSS_DARK_CYAN: Rgb565 = Self::with_rgb888(0, 139, 139)
Dark Cyan
source§const CSS_DARK_GOLDENROD: Rgb565 = Self::with_rgb888(184, 134, 11)
const CSS_DARK_GOLDENROD: Rgb565 = Self::with_rgb888(184, 134, 11)
Dark Goldenrod
source§const CSS_DARK_GRAY: Rgb565 = Self::with_rgb888(169, 169, 169)
const CSS_DARK_GRAY: Rgb565 = Self::with_rgb888(169, 169, 169)
Dark Gray
source§const CSS_DARK_GREEN: Rgb565 = Self::with_rgb888(0, 100, 0)
const CSS_DARK_GREEN: Rgb565 = Self::with_rgb888(0, 100, 0)
Dark Green
source§const CSS_DARK_KHAKI: Rgb565 = Self::with_rgb888(189, 183, 107)
const CSS_DARK_KHAKI: Rgb565 = Self::with_rgb888(189, 183, 107)
Dark Khaki
source§const CSS_DARK_MAGENTA: Rgb565 = Self::with_rgb888(139, 0, 139)
const CSS_DARK_MAGENTA: Rgb565 = Self::with_rgb888(139, 0, 139)
Dark Magenta
source§const CSS_DARK_OLIVE_GREEN: Rgb565 = Self::with_rgb888(85, 107, 47)
const CSS_DARK_OLIVE_GREEN: Rgb565 = Self::with_rgb888(85, 107, 47)
Dark Olive Green
source§const CSS_DARK_ORANGE: Rgb565 = Self::with_rgb888(255, 140, 0)
const CSS_DARK_ORANGE: Rgb565 = Self::with_rgb888(255, 140, 0)
Dark Orange
source§const CSS_DARK_ORCHID: Rgb565 = Self::with_rgb888(153, 50, 204)
const CSS_DARK_ORCHID: Rgb565 = Self::with_rgb888(153, 50, 204)
Dark Orchid
source§const CSS_DARK_RED: Rgb565 = Self::with_rgb888(139, 0, 0)
const CSS_DARK_RED: Rgb565 = Self::with_rgb888(139, 0, 0)
Dark Red
source§const CSS_DARK_SALMON: Rgb565 = Self::with_rgb888(233, 150, 122)
const CSS_DARK_SALMON: Rgb565 = Self::with_rgb888(233, 150, 122)
Dark Salmon
source§const CSS_DARK_SEA_GREEN: Rgb565 = Self::with_rgb888(143, 188, 143)
const CSS_DARK_SEA_GREEN: Rgb565 = Self::with_rgb888(143, 188, 143)
Dark Sea Green
source§const CSS_DARK_SLATE_BLUE: Rgb565 = Self::with_rgb888(72, 61, 139)
const CSS_DARK_SLATE_BLUE: Rgb565 = Self::with_rgb888(72, 61, 139)
Dark Slate Blue
source§const CSS_DARK_SLATE_GRAY: Rgb565 = Self::with_rgb888(47, 79, 79)
const CSS_DARK_SLATE_GRAY: Rgb565 = Self::with_rgb888(47, 79, 79)
Dark Slate Gray
source§const CSS_DARK_TURQUOISE: Rgb565 = Self::with_rgb888(0, 206, 209)
const CSS_DARK_TURQUOISE: Rgb565 = Self::with_rgb888(0, 206, 209)
Dark Turquoise
source§const CSS_DARK_VIOLET: Rgb565 = Self::with_rgb888(148, 0, 211)
const CSS_DARK_VIOLET: Rgb565 = Self::with_rgb888(148, 0, 211)
Dark Violet
source§const CSS_DEEP_PINK: Rgb565 = Self::with_rgb888(255, 20, 147)
const CSS_DEEP_PINK: Rgb565 = Self::with_rgb888(255, 20, 147)
Deep Pink
source§const CSS_DEEP_SKY_BLUE: Rgb565 = Self::with_rgb888(0, 191, 255)
const CSS_DEEP_SKY_BLUE: Rgb565 = Self::with_rgb888(0, 191, 255)
Deep Sky Blue
source§const CSS_DIM_GRAY: Rgb565 = Self::with_rgb888(105, 105, 105)
const CSS_DIM_GRAY: Rgb565 = Self::with_rgb888(105, 105, 105)
Dim Gray
source§const CSS_DODGER_BLUE: Rgb565 = Self::with_rgb888(30, 144, 255)
const CSS_DODGER_BLUE: Rgb565 = Self::with_rgb888(30, 144, 255)
Dodger Blue
source§const CSS_FIRE_BRICK: Rgb565 = Self::with_rgb888(178, 34, 34)
const CSS_FIRE_BRICK: Rgb565 = Self::with_rgb888(178, 34, 34)
Fire Brick
source§const CSS_FLORAL_WHITE: Rgb565 = Self::with_rgb888(255, 250, 240)
const CSS_FLORAL_WHITE: Rgb565 = Self::with_rgb888(255, 250, 240)
Floral White
source§const CSS_FOREST_GREEN: Rgb565 = Self::with_rgb888(34, 139, 34)
const CSS_FOREST_GREEN: Rgb565 = Self::with_rgb888(34, 139, 34)
Forest Green
source§const CSS_FUCHSIA: Rgb565 = Self::with_rgb888(255, 0, 255)
const CSS_FUCHSIA: Rgb565 = Self::with_rgb888(255, 0, 255)
Fuchsia
source§const CSS_GAINSBORO: Rgb565 = Self::with_rgb888(220, 220, 220)
const CSS_GAINSBORO: Rgb565 = Self::with_rgb888(220, 220, 220)
Gainsboro
source§const CSS_GHOST_WHITE: Rgb565 = Self::with_rgb888(248, 248, 255)
const CSS_GHOST_WHITE: Rgb565 = Self::with_rgb888(248, 248, 255)
Ghost White
source§const CSS_GOLDENROD: Rgb565 = Self::with_rgb888(218, 165, 32)
const CSS_GOLDENROD: Rgb565 = Self::with_rgb888(218, 165, 32)
Goldenrod
source§const CSS_GREEN_YELLOW: Rgb565 = Self::with_rgb888(173, 255, 47)
const CSS_GREEN_YELLOW: Rgb565 = Self::with_rgb888(173, 255, 47)
Green Yellow
source§const CSS_HONEYDEW: Rgb565 = Self::with_rgb888(240, 255, 240)
const CSS_HONEYDEW: Rgb565 = Self::with_rgb888(240, 255, 240)
Honeydew
source§const CSS_HOT_PINK: Rgb565 = Self::with_rgb888(255, 105, 180)
const CSS_HOT_PINK: Rgb565 = Self::with_rgb888(255, 105, 180)
Hot Pink
source§const CSS_INDIAN_RED: Rgb565 = Self::with_rgb888(205, 92, 92)
const CSS_INDIAN_RED: Rgb565 = Self::with_rgb888(205, 92, 92)
Indian Red
source§const CSS_INDIGO: Rgb565 = Self::with_rgb888(75, 0, 130)
const CSS_INDIGO: Rgb565 = Self::with_rgb888(75, 0, 130)
Indigo
source§const CSS_LAVENDER: Rgb565 = Self::with_rgb888(230, 230, 250)
const CSS_LAVENDER: Rgb565 = Self::with_rgb888(230, 230, 250)
Lavender
source§const CSS_LAVENDER_BLUSH: Rgb565 = Self::with_rgb888(255, 240, 245)
const CSS_LAVENDER_BLUSH: Rgb565 = Self::with_rgb888(255, 240, 245)
Lavender Blush
source§const CSS_LAWN_GREEN: Rgb565 = Self::with_rgb888(124, 252, 0)
const CSS_LAWN_GREEN: Rgb565 = Self::with_rgb888(124, 252, 0)
Lawn Green
source§const CSS_LEMON_CHIFFON: Rgb565 = Self::with_rgb888(255, 250, 205)
const CSS_LEMON_CHIFFON: Rgb565 = Self::with_rgb888(255, 250, 205)
Lemon Chiffon
source§const CSS_LIGHT_BLUE: Rgb565 = Self::with_rgb888(173, 216, 230)
const CSS_LIGHT_BLUE: Rgb565 = Self::with_rgb888(173, 216, 230)
Light Blue
source§const CSS_LIGHT_CORAL: Rgb565 = Self::with_rgb888(240, 128, 128)
const CSS_LIGHT_CORAL: Rgb565 = Self::with_rgb888(240, 128, 128)
Light Coral
source§const CSS_LIGHT_CYAN: Rgb565 = Self::with_rgb888(224, 255, 255)
const CSS_LIGHT_CYAN: Rgb565 = Self::with_rgb888(224, 255, 255)
Light Cyan
source§const CSS_LIGHT_GOLDENROD_YELLOW: Rgb565 = Self::with_rgb888(250, 250, 210)
const CSS_LIGHT_GOLDENROD_YELLOW: Rgb565 = Self::with_rgb888(250, 250, 210)
Light Goldenrod Yellow
source§const CSS_LIGHT_GRAY: Rgb565 = Self::with_rgb888(211, 211, 211)
const CSS_LIGHT_GRAY: Rgb565 = Self::with_rgb888(211, 211, 211)
Light Gray
source§const CSS_LIGHT_GREEN: Rgb565 = Self::with_rgb888(144, 238, 144)
const CSS_LIGHT_GREEN: Rgb565 = Self::with_rgb888(144, 238, 144)
Light Green
source§const CSS_LIGHT_PINK: Rgb565 = Self::with_rgb888(255, 182, 193)
const CSS_LIGHT_PINK: Rgb565 = Self::with_rgb888(255, 182, 193)
Light Pink
source§const CSS_LIGHT_SALMON: Rgb565 = Self::with_rgb888(255, 160, 122)
const CSS_LIGHT_SALMON: Rgb565 = Self::with_rgb888(255, 160, 122)
Light Salmon
source§const CSS_LIGHT_SEA_GREEN: Rgb565 = Self::with_rgb888(32, 178, 170)
const CSS_LIGHT_SEA_GREEN: Rgb565 = Self::with_rgb888(32, 178, 170)
Light Sea Green
source§const CSS_LIGHT_SKY_BLUE: Rgb565 = Self::with_rgb888(135, 206, 250)
const CSS_LIGHT_SKY_BLUE: Rgb565 = Self::with_rgb888(135, 206, 250)
Light Sky Blue
source§const CSS_LIGHT_SLATE_GRAY: Rgb565 = Self::with_rgb888(119, 136, 153)
const CSS_LIGHT_SLATE_GRAY: Rgb565 = Self::with_rgb888(119, 136, 153)
Light Slate Gray
source§const CSS_LIGHT_STEEL_BLUE: Rgb565 = Self::with_rgb888(176, 196, 222)
const CSS_LIGHT_STEEL_BLUE: Rgb565 = Self::with_rgb888(176, 196, 222)
Light Steel Blue
source§const CSS_LIGHT_YELLOW: Rgb565 = Self::with_rgb888(255, 255, 224)
const CSS_LIGHT_YELLOW: Rgb565 = Self::with_rgb888(255, 255, 224)
Light Yellow
source§const CSS_LIME_GREEN: Rgb565 = Self::with_rgb888(50, 205, 50)
const CSS_LIME_GREEN: Rgb565 = Self::with_rgb888(50, 205, 50)
Lime Green
source§const CSS_MAGENTA: Rgb565 = Self::with_rgb888(255, 0, 255)
const CSS_MAGENTA: Rgb565 = Self::with_rgb888(255, 0, 255)
Magenta
source§const CSS_MAROON: Rgb565 = Self::with_rgb888(128, 0, 0)
const CSS_MAROON: Rgb565 = Self::with_rgb888(128, 0, 0)
Maroon
source§const CSS_MEDIUM_AQUAMARINE: Rgb565 = Self::with_rgb888(102, 205, 170)
const CSS_MEDIUM_AQUAMARINE: Rgb565 = Self::with_rgb888(102, 205, 170)
Medium Aquamarine
source§const CSS_MEDIUM_BLUE: Rgb565 = Self::with_rgb888(0, 0, 205)
const CSS_MEDIUM_BLUE: Rgb565 = Self::with_rgb888(0, 0, 205)
Medium Blue
source§const CSS_MEDIUM_ORCHID: Rgb565 = Self::with_rgb888(186, 85, 211)
const CSS_MEDIUM_ORCHID: Rgb565 = Self::with_rgb888(186, 85, 211)
Medium Orchid
source§const CSS_MEDIUM_PURPLE: Rgb565 = Self::with_rgb888(147, 112, 219)
const CSS_MEDIUM_PURPLE: Rgb565 = Self::with_rgb888(147, 112, 219)
Medium Purple
source§const CSS_MEDIUM_SEA_GREEN: Rgb565 = Self::with_rgb888(60, 179, 113)
const CSS_MEDIUM_SEA_GREEN: Rgb565 = Self::with_rgb888(60, 179, 113)
Medium Sea Green
source§const CSS_MEDIUM_SLATE_BLUE: Rgb565 = Self::with_rgb888(123, 104, 238)
const CSS_MEDIUM_SLATE_BLUE: Rgb565 = Self::with_rgb888(123, 104, 238)
Medium Slate Blue
source§const CSS_MEDIUM_SPRING_GREEN: Rgb565 = Self::with_rgb888(0, 250, 154)
const CSS_MEDIUM_SPRING_GREEN: Rgb565 = Self::with_rgb888(0, 250, 154)
Medium Spring Green
source§const CSS_MEDIUM_TURQUOISE: Rgb565 = Self::with_rgb888(72, 209, 204)
const CSS_MEDIUM_TURQUOISE: Rgb565 = Self::with_rgb888(72, 209, 204)
Medium Turquoise
source§const CSS_MEDIUM_VIOLET_RED: Rgb565 = Self::with_rgb888(199, 21, 133)
const CSS_MEDIUM_VIOLET_RED: Rgb565 = Self::with_rgb888(199, 21, 133)
Medium Violet Red
source§const CSS_MIDNIGHT_BLUE: Rgb565 = Self::with_rgb888(25, 25, 112)
const CSS_MIDNIGHT_BLUE: Rgb565 = Self::with_rgb888(25, 25, 112)
Midnight Blue
source§const CSS_MINT_CREAM: Rgb565 = Self::with_rgb888(245, 255, 250)
const CSS_MINT_CREAM: Rgb565 = Self::with_rgb888(245, 255, 250)
Mint Cream
source§const CSS_MISTY_ROSE: Rgb565 = Self::with_rgb888(255, 228, 225)
const CSS_MISTY_ROSE: Rgb565 = Self::with_rgb888(255, 228, 225)
Misty Rose
source§const CSS_MOCCASIN: Rgb565 = Self::with_rgb888(255, 228, 181)
const CSS_MOCCASIN: Rgb565 = Self::with_rgb888(255, 228, 181)
Moccasin
source§const CSS_NAVAJO_WHITE: Rgb565 = Self::with_rgb888(255, 222, 173)
const CSS_NAVAJO_WHITE: Rgb565 = Self::with_rgb888(255, 222, 173)
Navajo White
source§const CSS_OLD_LACE: Rgb565 = Self::with_rgb888(253, 245, 230)
const CSS_OLD_LACE: Rgb565 = Self::with_rgb888(253, 245, 230)
Old Lace
source§const CSS_OLIVE_DRAB: Rgb565 = Self::with_rgb888(107, 142, 35)
const CSS_OLIVE_DRAB: Rgb565 = Self::with_rgb888(107, 142, 35)
Olive Drab
source§const CSS_ORANGE: Rgb565 = Self::with_rgb888(255, 165, 0)
const CSS_ORANGE: Rgb565 = Self::with_rgb888(255, 165, 0)
Orange
source§const CSS_ORANGE_RED: Rgb565 = Self::with_rgb888(255, 69, 0)
const CSS_ORANGE_RED: Rgb565 = Self::with_rgb888(255, 69, 0)
Orange Red
source§const CSS_ORCHID: Rgb565 = Self::with_rgb888(218, 112, 214)
const CSS_ORCHID: Rgb565 = Self::with_rgb888(218, 112, 214)
Orchid
source§const CSS_PALE_GOLDENROD: Rgb565 = Self::with_rgb888(238, 232, 170)
const CSS_PALE_GOLDENROD: Rgb565 = Self::with_rgb888(238, 232, 170)
Pale Goldenrod
source§const CSS_PALE_GREEN: Rgb565 = Self::with_rgb888(152, 251, 152)
const CSS_PALE_GREEN: Rgb565 = Self::with_rgb888(152, 251, 152)
Pale Green
source§const CSS_PALE_TURQUOISE: Rgb565 = Self::with_rgb888(175, 238, 238)
const CSS_PALE_TURQUOISE: Rgb565 = Self::with_rgb888(175, 238, 238)
Pale Turquoise
source§const CSS_PALE_VIOLET_RED: Rgb565 = Self::with_rgb888(219, 112, 147)
const CSS_PALE_VIOLET_RED: Rgb565 = Self::with_rgb888(219, 112, 147)
Pale Violet Red
source§const CSS_PAPAYA_WHIP: Rgb565 = Self::with_rgb888(255, 239, 213)
const CSS_PAPAYA_WHIP: Rgb565 = Self::with_rgb888(255, 239, 213)
Papaya Whip
source§const CSS_PEACH_PUFF: Rgb565 = Self::with_rgb888(255, 218, 185)
const CSS_PEACH_PUFF: Rgb565 = Self::with_rgb888(255, 218, 185)
Peach Puff
source§const CSS_POWDER_BLUE: Rgb565 = Self::with_rgb888(176, 224, 230)
const CSS_POWDER_BLUE: Rgb565 = Self::with_rgb888(176, 224, 230)
Powder Blue
source§const CSS_PURPLE: Rgb565 = Self::with_rgb888(128, 0, 128)
const CSS_PURPLE: Rgb565 = Self::with_rgb888(128, 0, 128)
Purple
source§const CSS_REBECCAPURPLE: Rgb565 = Self::with_rgb888(102, 51, 153)
const CSS_REBECCAPURPLE: Rgb565 = Self::with_rgb888(102, 51, 153)
Rebeccapurple
source§const CSS_ROSY_BROWN: Rgb565 = Self::with_rgb888(188, 143, 143)
const CSS_ROSY_BROWN: Rgb565 = Self::with_rgb888(188, 143, 143)
Rosy Brown
source§const CSS_ROYAL_BLUE: Rgb565 = Self::with_rgb888(65, 105, 225)
const CSS_ROYAL_BLUE: Rgb565 = Self::with_rgb888(65, 105, 225)
Royal Blue
source§const CSS_SADDLE_BROWN: Rgb565 = Self::with_rgb888(139, 69, 19)
const CSS_SADDLE_BROWN: Rgb565 = Self::with_rgb888(139, 69, 19)
Saddle Brown
source§const CSS_SALMON: Rgb565 = Self::with_rgb888(250, 128, 114)
const CSS_SALMON: Rgb565 = Self::with_rgb888(250, 128, 114)
Salmon
source§const CSS_SANDY_BROWN: Rgb565 = Self::with_rgb888(244, 164, 96)
const CSS_SANDY_BROWN: Rgb565 = Self::with_rgb888(244, 164, 96)
Sandy Brown
source§const CSS_SEA_GREEN: Rgb565 = Self::with_rgb888(46, 139, 87)
const CSS_SEA_GREEN: Rgb565 = Self::with_rgb888(46, 139, 87)
Sea Green
source§const CSS_SEASHELL: Rgb565 = Self::with_rgb888(255, 245, 238)
const CSS_SEASHELL: Rgb565 = Self::with_rgb888(255, 245, 238)
Seashell
source§const CSS_SIENNA: Rgb565 = Self::with_rgb888(160, 82, 45)
const CSS_SIENNA: Rgb565 = Self::with_rgb888(160, 82, 45)
Sienna
source§const CSS_SILVER: Rgb565 = Self::with_rgb888(192, 192, 192)
const CSS_SILVER: Rgb565 = Self::with_rgb888(192, 192, 192)
Silver
source§const CSS_SKY_BLUE: Rgb565 = Self::with_rgb888(135, 206, 235)
const CSS_SKY_BLUE: Rgb565 = Self::with_rgb888(135, 206, 235)
Sky Blue
source§const CSS_SLATE_BLUE: Rgb565 = Self::with_rgb888(106, 90, 205)
const CSS_SLATE_BLUE: Rgb565 = Self::with_rgb888(106, 90, 205)
Slate Blue
source§const CSS_SLATE_GRAY: Rgb565 = Self::with_rgb888(112, 128, 144)
const CSS_SLATE_GRAY: Rgb565 = Self::with_rgb888(112, 128, 144)
Slate Gray
source§const CSS_SPRING_GREEN: Rgb565 = Self::with_rgb888(0, 255, 127)
const CSS_SPRING_GREEN: Rgb565 = Self::with_rgb888(0, 255, 127)
Spring Green
source§const CSS_STEEL_BLUE: Rgb565 = Self::with_rgb888(70, 130, 180)
const CSS_STEEL_BLUE: Rgb565 = Self::with_rgb888(70, 130, 180)
Steel Blue
source§const CSS_THISTLE: Rgb565 = Self::with_rgb888(216, 191, 216)
const CSS_THISTLE: Rgb565 = Self::with_rgb888(216, 191, 216)
Thistle
source§const CSS_TOMATO: Rgb565 = Self::with_rgb888(255, 99, 71)
const CSS_TOMATO: Rgb565 = Self::with_rgb888(255, 99, 71)
Tomato
source§const CSS_TURQUOISE: Rgb565 = Self::with_rgb888(64, 224, 208)
const CSS_TURQUOISE: Rgb565 = Self::with_rgb888(64, 224, 208)
Turquoise
source§const CSS_VIOLET: Rgb565 = Self::with_rgb888(238, 130, 238)
const CSS_VIOLET: Rgb565 = Self::with_rgb888(238, 130, 238)
Violet
source§const CSS_WHITE_SMOKE: Rgb565 = Self::with_rgb888(245, 245, 245)
const CSS_WHITE_SMOKE: Rgb565 = Self::with_rgb888(245, 245, 245)
White Smoke
source§const CSS_YELLOW: Rgb565 = Self::with_rgb888(255, 255, 0)
const CSS_YELLOW: Rgb565 = Self::with_rgb888(255, 255, 0)
Yellow
source§const CSS_YELLOW_GREEN: Rgb565 = Self::with_rgb888(154, 205, 50)
const CSS_YELLOW_GREEN: Rgb565 = Self::with_rgb888(154, 205, 50)
Yellow Green
impl Copy for Rgb565
impl Eq for Rgb565
impl StructuralEq for Rgb565
impl StructuralPartialEq for Rgb565
Auto Trait Implementations§
impl RefUnwindSafe for Rgb565
impl Send for Rgb565
impl Sync for Rgb565
impl Unpin for Rgb565
impl UnwindSafe for Rgb565
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
source§impl<C> IntoStorage for Cwhere
C: PixelColor,
<C as PixelColor>::Raw: From<C>,
impl<C> IntoStorage for Cwhere C: PixelColor, <C as PixelColor>::Raw: From<C>,
§type Storage = <<C as PixelColor>::Raw as RawData>::Storage
type Storage = <<C as PixelColor>::Raw as RawData>::Storage
source§fn into_storage(self) -> <C as IntoStorage>::Storage
fn into_storage(self) -> <C as IntoStorage>::Storage
PixelColor
into its raw storage form