[][src]Enum rbx_dom_weak::BrickColor

#[repr(u16)]
pub enum BrickColor {
    White,
    Grey,
    LightYellow,
    BrickYellow,
    LightGreenMint,
    LightReddishViolet,
    PastelBlue,
    LightOrangeBrown,
    Nougat,
    BrightRed,
    MedReddishViolet,
    BrightBlue,
    BrightYellow,
    EarthOrange,
    Black,
    DarkGrey,
    DarkGreen,
    MediumGreen,
    LigYellowichOrange,
    BrightGreen,
    DarkOrange,
    LightBluishViolet,
    Transparent,
    TrRed,
    TrLgBlue,
    TrBlue,
    TrYellow,
    LightBlue,
    TrFluReddishOrange,
    TrGreen,
    TrFluGreen,
    PhosphWhite,
    LightRed,
    MediumRed,
    MediumBlue,
    LightGrey,
    BrightViolet,
    BrYellowishOrange,
    BrightOrange,
    BrightBluishGreen,
    EarthYellow,
    BrightBluishViolet,
    TrBrown,
    MediumBluishViolet,
    TrMediReddishViolet,
    MedYellowishGreen,
    MedBluishGreen,
    LightBluishGreen,
    BrYellowishGreen,
    LigYellowishGreen,
    MedYellowishOrange,
    BrReddishOrange,
    BrightReddishViolet,
    LightOrange,
    TrBrightBluishViolet,
    Gold,
    DarkNougat,
    Silver,
    NeonOrange,
    NeonGreen,
    SandBlue,
    SandViolet,
    MediumOrange,
    SandYellow,
    EarthBlue,
    EarthGreen,
    TrFluBlue,
    SandBlueMetallic,
    SandVioletMetallic,
    SandYellowMetallic,
    DarkGreyMetallic,
    BlackMetallic,
    LightGreyMetallic,
    SandGreen,
    SandRed,
    DarkRed,
    TrFluYellow,
    TrFluRed,
    GunMetallic,
    RedFlipFlop,
    YellowFlipFlop,
    SilverFlipFlop,
    Curry,
    FireYellow,
    FlameYellowishOrange,
    ReddishBrown,
    FlameReddishOrange,
    MediumStoneGrey,
    RoyalBlue,
    DarkRoyalBlue,
    BrightReddishLilac,
    DarkStoneGrey,
    LemonMetalic,
    LightStoneGrey,
    DarkCurry,
    FadedGreen,
    Turquoise,
    LightRoyalBlue,
    MediumRoyalBlue,
    Rust,
    Brown,
    ReddishLilac,
    Lilac2,
    LightLilac,
    BrightPurple,
    LightPurple,
    LightPink,
    LightBrickYellow,
    WarmYellowishOrange,
    CoolYellow,
    DoveBlue,
    MediumLilac,
    SlimeGreen,
    SmokyGrey,
    DarkBlue,
    ParsleyGreen,
    SteelBlue,
    StormBlue,
    Lapis,
    DarkIndigo,
    SeaGreen,
    Shamrock,
    Fossil,
    Mulberry,
    ForestGreen,
    CadetBlue,
    ElectricBlue,
    Eggplant,
    Moss,
    Artichoke,
    SageGreen,
    GhostGrey,
    Lilac,
    Plum,
    Olivine,
    LaurelGreen,
    QuillGrey,
    Crimson,
    Mint,
    BabyBlue,
    CarnationPink,
    Persimmon,
    Maroon,
    Gold2,
    DaisyOrange,
    Pearl,
    Fog,
    Salmon,
    TerraCotta,
    Cocoa,
    Wheat,
    Buttermilk,
    Mauve,
    Sunrise,
    Tawny,
    Rust2,
    Cashmere,
    Khaki,
    LilyWhite,
    Seashell,
    Burgundy,
    Cork,
    Burlap,
    Beige,
    Oyster,
    PineCone,
    FawnBrown,
    HurricaneGrey,
    CloudyGrey,
    Linen,
    Copper,
    DirtBrown,
    Bronze,
    Flint,
    DarkTaupe,
    BurntSienna,
    InstitutionalWhite,
    MidGray,
    ReallyBlack,
    ReallyRed,
    DeepOrange,
    Alder,
    DustyRose,
    Olive,
    NewYeller,
    ReallyBlue,
    NavyBlue,
    DeepBlue,
    Cyan,
    CGABrown,
    Magenta,
    Pink,
    DeepOrange2,
    Teal,
    Toothpaste,
    LimeGreen,
    Camo,
    Grime,
    Lavender,
    PastelLightBlue,
    PastelOrange,
    PastelViolet,
    PastelBlueGreen,
    PastelGreen,
    PastelYellow,
    PastelBrown,
    RoyalPurple,
    HotPink,
}

BrickColor values were the old, palette-based system of defining colors in Roblox. As of the time of writing, they're still used for some old systems like SpawnLocation and Team objects.

Parts no longer use BrickColor, but we have conversions here to support older models.

Variants

White
Grey
LightYellow
BrickYellow
LightGreenMint
LightReddishViolet
PastelBlue
LightOrangeBrown
Nougat
BrightRed
MedReddishViolet
BrightBlue
BrightYellow
EarthOrange
Black
DarkGrey
DarkGreen
MediumGreen
LigYellowichOrange
BrightGreen
DarkOrange
LightBluishViolet
Transparent
TrRed
TrLgBlue
TrBlue
TrYellow
LightBlue
TrFluReddishOrange
TrGreen
TrFluGreen
PhosphWhite
LightRed
MediumRed
MediumBlue
LightGrey
BrightViolet
BrYellowishOrange
BrightOrange
BrightBluishGreen
EarthYellow
BrightBluishViolet
TrBrown
MediumBluishViolet
TrMediReddishViolet
MedYellowishGreen
MedBluishGreen
LightBluishGreen
BrYellowishGreen
LigYellowishGreen
MedYellowishOrange
BrReddishOrange
BrightReddishViolet
LightOrange
TrBrightBluishViolet
Gold
DarkNougat
Silver
NeonOrange
NeonGreen
SandBlue
SandViolet
MediumOrange
SandYellow
EarthBlue
EarthGreen
TrFluBlue
SandBlueMetallic
SandVioletMetallic
SandYellowMetallic
DarkGreyMetallic
BlackMetallic
LightGreyMetallic
SandGreen
SandRed
DarkRed
TrFluYellow
TrFluRed
GunMetallic
RedFlipFlop
YellowFlipFlop
SilverFlipFlop
Curry
FireYellow
FlameYellowishOrange
ReddishBrown
FlameReddishOrange
MediumStoneGrey
RoyalBlue
DarkRoyalBlue
BrightReddishLilac
DarkStoneGrey
LemonMetalic
LightStoneGrey
DarkCurry
FadedGreen
Turquoise
LightRoyalBlue
MediumRoyalBlue
Rust
Brown
ReddishLilac
Lilac2
LightLilac
BrightPurple
LightPurple
LightPink
LightBrickYellow
WarmYellowishOrange
CoolYellow
DoveBlue
MediumLilac
SlimeGreen
SmokyGrey
DarkBlue
ParsleyGreen
SteelBlue
StormBlue
Lapis
DarkIndigo
SeaGreen
Shamrock
Fossil
Mulberry
ForestGreen
CadetBlue
ElectricBlue
Eggplant
Moss
Artichoke
SageGreen
GhostGrey
Lilac
Plum
Olivine
LaurelGreen
QuillGrey
Crimson
Mint
BabyBlue
CarnationPink
Persimmon
Maroon
Gold2
DaisyOrange
Pearl
Fog
Salmon
TerraCotta
Cocoa
Wheat
Buttermilk
Mauve
Sunrise
Tawny
Rust2
Cashmere
Khaki
LilyWhite
Seashell
Burgundy
Cork
Burlap
Beige
Oyster
PineCone
FawnBrown
HurricaneGrey
CloudyGrey
Linen
Copper
DirtBrown
Bronze
Flint
DarkTaupe
BurntSienna
InstitutionalWhite
MidGray
ReallyBlack
ReallyRed
DeepOrange
Alder
DustyRose
Olive
NewYeller
ReallyBlue
NavyBlue
DeepBlue
Cyan
CGABrown
Magenta
Pink
DeepOrange2
Teal
Toothpaste
LimeGreen
Camo
Grime
Lavender
PastelLightBlue
PastelOrange
PastelViolet
PastelBlueGreen
PastelGreen
PastelYellow
PastelBrown
RoyalPurple
HotPink

Methods

impl BrickColor[src]

pub fn from_name(name: &str) -> Option<BrickColor>[src]

Find the first BrickColor with the given name, if it exists.

Note that some colors (Lilac, Rust, Gold, and Deep orange) have name collisions and can only have one of their variants constructed from this function.

This is roughly equivalent to BrickColor.new(string) from within Roblox, except unknown values will yield None instead of Medium stone grey.

pub fn from_number(value: u16) -> Option<BrickColor>[src]

Finds the BrickColor from its associated value. This is different from a BrickColor's palette number, which not all colors have.

This is roughly equivalent to BrickColor.new(number) from within Roblox, except unknown values will yield None instead of Medium stone grey.

impl BrickColor[src]

pub fn from_palette(value: u8) -> Option<BrickColor>[src]

Deprecated since 1.9.0:

Please use BrickColor::from_number instead

Convert from a BrickColor palette number to a BrickColor.

This function should not be used for new code, it only exists because of a misunderstanding of the range of valid BrickColor values.

This function operates like BrickColor.palette within Roblox.

Trait Implementations

impl Clone for BrickColor[src]

impl Copy for BrickColor[src]

impl Debug for BrickColor[src]

impl<'de> Deserialize<'de> for BrickColor[src]

impl Display for BrickColor[src]

impl PartialEq<BrickColor> for BrickColor[src]

impl Serialize for BrickColor[src]

impl StructuralPartialEq for BrickColor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,