Index · Color

Color

A color represented in RGBA format.

Class Description

A color represented in RGBA format by a red (r), green (g), blue (b), and alpha (a) component. Each component is a 32-bit floating-point value, usually ranging from 0.0 to 1.0. Some properties (such as CanvasItem.modulate) may support values greater than 1.0, for overbright or HDR (High Dynamic Range) colors.

Colors can be created in a number of ways: By the various Color constructors, by static methods such as from_hsv(), and by using a name from the set of standardized colors based on X11 color names with the addition of TRANSPARENT.

Color constants cheatsheet

Although Color may be used to store values of any encoding, the red (r), green (g), and blue (b) properties of Color are expected by Godot to be encoded using the nonlinear sRGB transfer function unless otherwise stated. This color encoding is used by many traditional art and web tools, making it easy to match colors between Godot and these tools. Godot uses Rec. ITU-R BT.709 color primaries, which are used by the sRGB standard.

All physical simulation, such as lighting calculations, and colorimetry transformations, such as get_luminance(), must be performed on linearly encoded values to produce correct results. When performing these calculations, convert Color to and from linear encoding using srgb_to_linear() and linear_to_srgb().

Note: In a boolean context, a Color will evaluate to false if it is equal to Color(0, 0, 0, 1) (opaque black). Otherwise, a Color will always evaluate to true.

Note: In C#, color constants are defined in the Colors static class instead of [code skip-lint]Color[/code]. Additionally, named colors use PascalCase syntax instead of UPPER_SNAKE_CASE. For example, [code skip-lint]Color.ALICE_BLUE[/code] in GDScript is [code skip-lint]Colors.AliceBlue[/code] in C#.

Properties

var a: float = 1.0

The color's alpha component, typically on the range of 0 to 1. A value of 0 means that the color is fully transparent. A value of 1 means that the color is fully opaque.

Note: The alpha channel is always stored with linear encoding, regardless of the encoding of the other color channels. The linear_to_srgb() and srgb_to_linear() methods do not affect the alpha channel.

var a8: int = 255

Wrapper for a that uses the range 0 to 255, instead of 0 to 1.

var b: float = 0.0

The color's blue component, typically on the range of 0 to 1.

var b8: int = 0

Wrapper for b that uses the range 0 to 255, instead of 0 to 1.

var g: float = 0.0

The color's green component, typically on the range of 0 to 1.

var g8: int = 0

Wrapper for g that uses the range 0 to 255, instead of 0 to 1.

var h: float = 0.0

The HSV hue of this color, on the range 0 to 1.

var ok_hsl_h: float = 0.0

The OKHSL hue of this color, on the range 0 to 1.

var ok_hsl_l: float = 0.0

The OKHSL lightness of this color, on the range 0 to 1.

var ok_hsl_s: float = 0.0

The OKHSL saturation of this color, on the range 0 to 1.

var r: float = 0.0

The color's red component, typically on the range of 0 to 1.

var r8: int = 0

Wrapper for r that uses the range 0 to 255, instead of 0 to 1.

var s: float = 0.0

The HSV saturation of this color, on the range 0 to 1.

var v: float = 0.0

The HSV value (brightness) of this color, on the range 0 to 1.

Methods

func blend(over: Color) -> Color

Returns a new color resulting from overlaying this color over the given color. In a painting program, you can imagine it as the over color painted over this color (including alpha).

var bg = Color(0.0, 1.0, 0.0, 0.5) # Green with alpha of 50%
var fg = Color(1.0, 0.0, 0.0, 0.5) # Red with alpha of 50%
var blended_color = bg.blend(fg) # Brown with alpha of 75%
func clamp(min: Color = Color(0, 0, 0, 0), max: Color = Color(1, 1, 1, 1)) -> Color

Returns a new color with all components clamped between the components of min and max, by running clamp() on each component.

func darkened(amount: float) -> Color

Returns a new color resulting from making this color darker by the specified amount (ratio from 0.0 to 1.0). See also lightened().

var green = Color(0.0, 1.0, 0.0)
var darkgreen = green.darkened(0.2) # 20% darker than regular green
func from_hsv(h: float, s: float, v: float, alpha: float = 1.0) -> Color

Constructs a color from an HSV profile. The hue (h), saturation (s), and value (v) are typically between 0.0 and 1.0.

var color = Color.from_hsv(0.58, 0.5, 0.79, 0.8)
func from_ok_hsl(h: float, s: float, l: float, alpha: float = 1.0) -> Color

Constructs a color from an OK HSL profile. The hue (h), saturation (s), and lightness (l) are typically between 0.0 and 1.0.

var color = Color.from_ok_hsl(0.58, 0.5, 0.79, 0.8)
func from_rgba8(r8: int, g8: int, b8: int, a8: int = 255) -> Color

Returns a Color constructed from red (r8), green (g8), blue (b8), and optionally alpha (a8) integer channels, each divided by 255.0 for their final value.

var red = Color.from_rgba8(255, 0, 0)             # Same as Color(1, 0, 0).
var dark_blue = Color.from_rgba8(0, 0, 51)        # Same as Color(0, 0, 0.2).
var my_color = Color.from_rgba8(306, 255, 0, 102) # Same as Color(1.2, 1, 0, 0.4).

Note: Due to the lower precision of from_rgba8() compared to the standard Color constructor, a color created with from_rgba8() will generally not be equal to the same color created with the standard Color constructor. Use is_equal_approx() for comparisons to avoid issues with floating-point precision error.

func from_rgbe9995(rgbe: int) -> Color

Decodes a Color from an RGBE9995 format integer. See Image.FORMAT_RGBE9995.

func from_string(str: String, default: Color) -> Color

Creates a Color from the given string, which can be either an HTML color code or a named color (case-insensitive). Returns default if the color cannot be inferred from the string.

If you want to create a color from String in a constant expression, use the equivalent constructor instead (i.e. Color("color string")).

func get_luminance() -> float

Returns the light intensity of the color, as a value between 0.0 and 1.0 (inclusive). This is useful when determining light or dark color. Colors with a luminance smaller than 0.5 can be generally considered dark.

Note: get_luminance() relies on the color using linear encoding to return an accurate relative luminance value. If the color uses the default nonlinear sRGB encoding, use srgb_to_linear() to convert it to linear encoding first.

func hex(hex: int) -> Color

Returns the Color associated with the provided hex integer in 32-bit RGBA format (8 bits per channel). This method is the inverse of to_rgba32().

In GDScript and C#, the int is best visualized with hexadecimal notation ("0x" prefix, making it "0xRRGGBBAA").

var red = Color.hex(0xff0000ff)
var dark_cyan = Color.hex(0x008b8bff)
var my_color = Color.hex(0xbbefd2a4)

If you want to use hex notation in a constant expression, use the equivalent constructor instead (i.e. Color(0xRRGGBBAA)).

func hex64(hex: int) -> Color

Returns the Color associated with the provided hex integer in 64-bit RGBA format (16 bits per channel). This method is the inverse of to_rgba64().

In GDScript and C#, the int is best visualized with hexadecimal notation ("0x" prefix, making it "0xRRRRGGGGBBBBAAAA").

func html(rgba: String) -> Color

Returns a new color from rgba, an HTML hexadecimal color string. rgba is not case-sensitive, and may be prefixed by a hash sign (#).

rgba must be a valid three-digit or six-digit hexadecimal color string, and may contain an alpha channel value. If rgba does not contain an alpha channel value, an alpha channel value of 1.0 is applied. If rgba is invalid, returns an empty color.

var blue = Color.html("#0000ff") # blue is Color(0.0, 0.0, 1.0, 1.0)
var green = Color.html("#0F0")   # green is Color(0.0, 1.0, 0.0, 1.0)
var col = Color.html("663399cc") # col is Color(0.4, 0.2, 0.6, 0.8)
func html_is_valid(color: String) -> bool

Returns true if color is a valid HTML hexadecimal color string. The string must be a hexadecimal value (case-insensitive) of either 3, 4, 6 or 8 digits, and may be prefixed by a hash sign (#). This method is identical to String.is_valid_html_color().

Color.html_is_valid("#55aaFF")   # Returns true
Color.html_is_valid("#55AAFF20") # Returns true
Color.html_is_valid("55AAFF")    # Returns true
Color.html_is_valid("#F2C")      # Returns true

Color.html_is_valid("#AABBC")    # Returns false
Color.html_is_valid("#55aaFF5")  # Returns false
func inverted() -> Color

Returns the color with its r, g, and b components inverted ((1 - r, 1 - g, 1 - b, a)).

var black = Color.WHITE.inverted()
var color = Color(0.3, 0.4, 0.9)
var inverted_color = color.inverted() # Equivalent to `Color(0.7, 0.6, 0.1)`
func is_equal_approx(to: Color) -> bool

Returns true if this color and to are approximately equal, by running is_equal_approx() on each component.

func lerp(to: Color, weight: float) -> Color

Returns the linear interpolation between this color's components and to's components. The interpolation factor weight should be between 0.0 and 1.0 (inclusive). See also lerp().

var red = Color(1.0, 0.0, 0.0)
var aqua = Color(0.0, 1.0, 0.8)

red.lerp(aqua, 0.2) # Returns Color(0.8, 0.2, 0.16)
red.lerp(aqua, 0.5) # Returns Color(0.5, 0.5, 0.4)
red.lerp(aqua, 1.0) # Returns Color(0.0, 1.0, 0.8)
func lightened(amount: float) -> Color

Returns a new color resulting from making this color lighter by the specified amount, which should be a ratio from 0.0 to 1.0. See also darkened().

var green = Color(0.0, 1.0, 0.0)
var light_green = green.lightened(0.2) # 20% lighter than regular green
func linear_to_srgb() -> Color

Returns a copy of the color that is encoded using the nonlinear sRGB transfer function. This method requires the original color to use linear encoding. See also srgb_to_linear() which performs the opposite operation.

Note: The color's alpha channel (a) is not affected. The alpha channel is always stored with linear encoding, regardless of the color space of the other color channels.

func srgb_to_linear() -> Color

Returns a copy of the color that uses linear encoding. This method requires the original color to be encoded using the nonlinear sRGB transfer function. See also linear_to_srgb() which performs the opposite operation.

Note: The color's alpha channel (a) is not affected. The alpha channel is always stored with linear encoding, regardless of the color space of the other color channels.

func to_abgr32() -> int

Returns the color converted to a 32-bit integer in ABGR format (each component is 8 bits). ABGR is the reversed version of the default RGBA format.

var color = Color(1, 0.5, 0.2)
print(color.to_abgr32()) # Prints 4281565439
func to_abgr64() -> int

Returns the color converted to a 64-bit integer in ABGR format (each component is 16 bits). ABGR is the reversed version of the default RGBA format.

var color = Color(1, 0.5, 0.2)
print(color.to_abgr64()) # Prints -225178692812801
func to_argb32() -> int

Returns the color converted to a 32-bit integer in ARGB format (each component is 8 bits). ARGB is more compatible with DirectX.

var color = Color(1, 0.5, 0.2)
print(color.to_argb32()) # Prints 4294934323
func to_argb64() -> int

Returns the color converted to a 64-bit integer in ARGB format (each component is 16 bits). ARGB is more compatible with DirectX.

var color = Color(1, 0.5, 0.2)
print(color.to_argb64()) # Prints -2147470541
func to_html(with_alpha: bool = true) -> String

Returns the color converted to an HTML hexadecimal color String in RGBA format, without the hash (#) prefix.

Setting with_alpha to false, excludes alpha from the hexadecimal string, using RGB format instead of RGBA format.

var white = Color(1, 1, 1, 0.5)
var with_alpha = white.to_html() # Returns "ffffff7f"
var without_alpha = white.to_html(false) # Returns "ffffff"
func to_rgba32() -> int

Returns the color converted to a 32-bit integer in RGBA format (each component is 8 bits). RGBA is Godot's default format. This method is the inverse of hex().

var color = Color(1, 0.5, 0.2)
print(color.to_rgba32()) # Prints 4286526463
func to_rgba64() -> int

Returns the color converted to a 64-bit integer in RGBA format (each component is 16 bits). RGBA is Godot's default format. This method is the inverse of hex64().

var color = Color(1, 0.5, 0.2)
print(color.to_rgba64()) # Prints -140736629309441

Enums & Constants

const ALICE_BLUE = Color(0.9411765, 0.972549, 1, 1)

Alice blue color.

const ANTIQUE_WHITE = Color(0.98039216, 0.92156863, 0.84313726, 1)

Antique white color.

const AQUA = Color(0, 1, 1, 1)

Aqua color.

const AQUAMARINE = Color(0.49803922, 1, 0.83137256, 1)

Aquamarine color.

const AZURE = Color(0.9411765, 1, 1, 1)

Azure color.

const BEIGE = Color(0.9607843, 0.9607843, 0.8627451, 1)

Beige color.

const BISQUE = Color(1, 0.89411765, 0.76862746, 1)

Bisque color.

const BLACK = Color(0, 0, 0, 1)

Black color. In GDScript, this is the default value of any color.

const BLANCHED_ALMOND = Color(1, 0.92156863, 0.8039216, 1)

Blanched almond color.

const BLUE = Color(0, 0, 1, 1)

Blue color.

const BLUE_VIOLET = Color(0.5411765, 0.16862746, 0.8862745, 1)

Blue violet color.

const BROWN = Color(0.64705884, 0.16470589, 0.16470589, 1)

Brown color.

const BURLYWOOD = Color(0.87058824, 0.72156864, 0.5294118, 1)

Burlywood color.

const CADET_BLUE = Color(0.37254903, 0.61960787, 0.627451, 1)

Cadet blue color.

const CHARTREUSE = Color(0.49803922, 1, 0, 1)

Chartreuse color.

const CHOCOLATE = Color(0.8235294, 0.4117647, 0.11764706, 1)

Chocolate color.

const CORAL = Color(1, 0.49803922, 0.3137255, 1)

Coral color.

const CORNFLOWER_BLUE = Color(0.39215687, 0.58431375, 0.92941177, 1)

Cornflower blue color.

const CORNSILK = Color(1, 0.972549, 0.8627451, 1)

Cornsilk color.

const CRIMSON = Color(0.8627451, 0.078431375, 0.23529412, 1)

Crimson color.

const CYAN = Color(0, 1, 1, 1)

Cyan color.

const DARK_BLUE = Color(0, 0, 0.54509807, 1)

Dark blue color.

const DARK_CYAN = Color(0, 0.54509807, 0.54509807, 1)

Dark cyan color.

const DARK_GOLDENROD = Color(0.72156864, 0.5254902, 0.043137256, 1)

Dark goldenrod color.

const DARK_GRAY = Color(0.6627451, 0.6627451, 0.6627451, 1)

Dark gray color.

const DARK_GREEN = Color(0, 0.39215687, 0, 1)

Dark green color.

const DARK_KHAKI = Color(0.7411765, 0.7176471, 0.41960785, 1)

Dark khaki color.

const DARK_MAGENTA = Color(0.54509807, 0, 0.54509807, 1)

Dark magenta color.

const DARK_OLIVE_GREEN = Color(0.33333334, 0.41960785, 0.18431373, 1)

Dark olive green color.

const DARK_ORANGE = Color(1, 0.54901963, 0, 1)

Dark orange color.

const DARK_ORCHID = Color(0.6, 0.19607843, 0.8, 1)

Dark orchid color.

const DARK_RED = Color(0.54509807, 0, 0, 1)

Dark red color.

const DARK_SALMON = Color(0.9137255, 0.5882353, 0.47843137, 1)

Dark salmon color.

const DARK_SEA_GREEN = Color(0.56078434, 0.7372549, 0.56078434, 1)

Dark sea green color.

const DARK_SLATE_BLUE = Color(0.28235295, 0.23921569, 0.54509807, 1)

Dark slate blue color.

const DARK_SLATE_GRAY = Color(0.18431373, 0.30980393, 0.30980393, 1)

Dark slate gray color.

const DARK_TURQUOISE = Color(0, 0.80784315, 0.81960785, 1)

Dark turquoise color.

const DARK_VIOLET = Color(0.5803922, 0, 0.827451, 1)

Dark violet color.

const DEEP_PINK = Color(1, 0.078431375, 0.5764706, 1)

Deep pink color.

const DEEP_SKY_BLUE = Color(0, 0.7490196, 1, 1)

Deep sky blue color.

const DIM_GRAY = Color(0.4117647, 0.4117647, 0.4117647, 1)

Dim gray color.

const DODGER_BLUE = Color(0.11764706, 0.5647059, 1, 1)

Dodger blue color.

const FIREBRICK = Color(0.69803923, 0.13333334, 0.13333334, 1)

Firebrick color.

const FLORAL_WHITE = Color(1, 0.98039216, 0.9411765, 1)

Floral white color.

const FOREST_GREEN = Color(0.13333334, 0.54509807, 0.13333334, 1)

Forest green color.

const FUCHSIA = Color(1, 0, 1, 1)

Fuchsia color.

const GAINSBORO = Color(0.8627451, 0.8627451, 0.8627451, 1)

Gainsboro color.

const GHOST_WHITE = Color(0.972549, 0.972549, 1, 1)

Ghost white color.

const GOLD = Color(1, 0.84313726, 0, 1)

Gold color.

const GOLDENROD = Color(0.85490197, 0.64705884, 0.1254902, 1)

Goldenrod color.

const GRAY = Color(0.74509805, 0.74509805, 0.74509805, 1)

Gray color.

const GREEN = Color(0, 1, 0, 1)

Green color.

const GREEN_YELLOW = Color(0.6784314, 1, 0.18431373, 1)

Green yellow color.

const HONEYDEW = Color(0.9411765, 1, 0.9411765, 1)

Honeydew color.

const HOT_PINK = Color(1, 0.4117647, 0.7058824, 1)

Hot pink color.

const INDIAN_RED = Color(0.8039216, 0.36078432, 0.36078432, 1)

Indian red color.

const INDIGO = Color(0.29411766, 0, 0.50980395, 1)

Indigo color.

const IVORY = Color(1, 1, 0.9411765, 1)

Ivory color.

const KHAKI = Color(0.9411765, 0.9019608, 0.54901963, 1)

Khaki color.

const LAVENDER = Color(0.9019608, 0.9019608, 0.98039216, 1)

Lavender color.

const LAVENDER_BLUSH = Color(1, 0.9411765, 0.9607843, 1)

Lavender blush color.

const LAWN_GREEN = Color(0.4862745, 0.9882353, 0, 1)

Lawn green color.

const LEMON_CHIFFON = Color(1, 0.98039216, 0.8039216, 1)

Lemon chiffon color.

const LIGHT_BLUE = Color(0.6784314, 0.84705883, 0.9019608, 1)

Light blue color.

const LIGHT_CORAL = Color(0.9411765, 0.5019608, 0.5019608, 1)

Light coral color.

const LIGHT_CYAN = Color(0.8784314, 1, 1, 1)

Light cyan color.

const LIGHT_GOLDENROD = Color(0.98039216, 0.98039216, 0.8235294, 1)

Light goldenrod color.

const LIGHT_GRAY = Color(0.827451, 0.827451, 0.827451, 1)

Light gray color.

const LIGHT_GREEN = Color(0.5647059, 0.93333334, 0.5647059, 1)

Light green color.

const LIGHT_PINK = Color(1, 0.7137255, 0.75686276, 1)

Light pink color.

const LIGHT_SALMON = Color(1, 0.627451, 0.47843137, 1)

Light salmon color.

const LIGHT_SEA_GREEN = Color(0.1254902, 0.69803923, 0.6666667, 1)

Light sea green color.

const LIGHT_SKY_BLUE = Color(0.5294118, 0.80784315, 0.98039216, 1)

Light sky blue color.

const LIGHT_SLATE_GRAY = Color(0.46666667, 0.53333336, 0.6, 1)

Light slate gray color.

const LIGHT_STEEL_BLUE = Color(0.6901961, 0.76862746, 0.87058824, 1)

Light steel blue color.

const LIGHT_YELLOW = Color(1, 1, 0.8784314, 1)

Light yellow color.

const LIME = Color(0, 1, 0, 1)

Lime color.

const LIME_GREEN = Color(0.19607843, 0.8039216, 0.19607843, 1)

Lime green color.

const LINEN = Color(0.98039216, 0.9411765, 0.9019608, 1)

Linen color.

const MAGENTA = Color(1, 0, 1, 1)

Magenta color.

const MAROON = Color(0.6901961, 0.1882353, 0.3764706, 1)

Maroon color.

const MEDIUM_AQUAMARINE = Color(0.4, 0.8039216, 0.6666667, 1)

Medium aquamarine color.

const MEDIUM_BLUE = Color(0, 0, 0.8039216, 1)

Medium blue color.

const MEDIUM_ORCHID = Color(0.7294118, 0.33333334, 0.827451, 1)

Medium orchid color.

const MEDIUM_PURPLE = Color(0.5764706, 0.4392157, 0.85882354, 1)

Medium purple color.

const MEDIUM_SEA_GREEN = Color(0.23529412, 0.7019608, 0.44313726, 1)

Medium sea green color.

const MEDIUM_SLATE_BLUE = Color(0.48235294, 0.40784314, 0.93333334, 1)

Medium slate blue color.

const MEDIUM_SPRING_GREEN = Color(0, 0.98039216, 0.6039216, 1)

Medium spring green color.

const MEDIUM_TURQUOISE = Color(0.28235295, 0.81960785, 0.8, 1)

Medium turquoise color.

const MEDIUM_VIOLET_RED = Color(0.78039217, 0.08235294, 0.52156866, 1)

Medium violet red color.

const MIDNIGHT_BLUE = Color(0.09803922, 0.09803922, 0.4392157, 1)

Midnight blue color.

const MINT_CREAM = Color(0.9607843, 1, 0.98039216, 1)

Mint cream color.

const MISTY_ROSE = Color(1, 0.89411765, 0.88235295, 1)

Misty rose color.

const MOCCASIN = Color(1, 0.89411765, 0.70980394, 1)

Moccasin color.

const NAVAJO_WHITE = Color(1, 0.87058824, 0.6784314, 1)

Navajo white color.

const NAVY_BLUE = Color(0, 0, 0.5019608, 1)

Navy blue color.

const OLD_LACE = Color(0.99215686, 0.9607843, 0.9019608, 1)

Old lace color.

const OLIVE = Color(0.5019608, 0.5019608, 0, 1)

Olive color.

const OLIVE_DRAB = Color(0.41960785, 0.5568628, 0.13725491, 1)

Olive drab color.

const ORANGE = Color(1, 0.64705884, 0, 1)

Orange color.

const ORANGE_RED = Color(1, 0.27058825, 0, 1)

Orange red color.

const ORCHID = Color(0.85490197, 0.4392157, 0.8392157, 1)

Orchid color.

const PALE_GOLDENROD = Color(0.93333334, 0.9098039, 0.6666667, 1)

Pale goldenrod color.

const PALE_GREEN = Color(0.59607846, 0.9843137, 0.59607846, 1)

Pale green color.

const PALE_TURQUOISE = Color(0.6862745, 0.93333334, 0.93333334, 1)

Pale turquoise color.

const PALE_VIOLET_RED = Color(0.85882354, 0.4392157, 0.5764706, 1)

Pale violet red color.

const PAPAYA_WHIP = Color(1, 0.9372549, 0.8352941, 1)

Papaya whip color.

const PEACH_PUFF = Color(1, 0.85490197, 0.7254902, 1)

Peach puff color.

const PERU = Color(0.8039216, 0.52156866, 0.24705882, 1)

Peru color.

const PINK = Color(1, 0.7529412, 0.79607844, 1)

Pink color.

const PLUM = Color(0.8666667, 0.627451, 0.8666667, 1)

Plum color.

const POWDER_BLUE = Color(0.6901961, 0.8784314, 0.9019608, 1)

Powder blue color.

const PURPLE = Color(0.627451, 0.1254902, 0.9411765, 1)

Purple color.

const REBECCA_PURPLE = Color(0.4, 0.2, 0.6, 1)

Rebecca purple color.

const RED = Color(1, 0, 0, 1)

Red color.

const ROSY_BROWN = Color(0.7372549, 0.56078434, 0.56078434, 1)

Rosy brown color.

const ROYAL_BLUE = Color(0.25490198, 0.4117647, 0.88235295, 1)

Royal blue color.

const SADDLE_BROWN = Color(0.54509807, 0.27058825, 0.07450981, 1)

Saddle brown color.

const SALMON = Color(0.98039216, 0.5019608, 0.44705883, 1)

Salmon color.

const SANDY_BROWN = Color(0.95686275, 0.6431373, 0.3764706, 1)

Sandy brown color.

const SEA_GREEN = Color(0.18039216, 0.54509807, 0.34117648, 1)

Sea green color.

const SEASHELL = Color(1, 0.9607843, 0.93333334, 1)

Seashell color.

const SIENNA = Color(0.627451, 0.32156864, 0.1764706, 1)

Sienna color.

const SILVER = Color(0.7529412, 0.7529412, 0.7529412, 1)

Silver color.

const SKY_BLUE = Color(0.5294118, 0.80784315, 0.92156863, 1)

Sky blue color.

const SLATE_BLUE = Color(0.41568628, 0.3529412, 0.8039216, 1)

Slate blue color.

const SLATE_GRAY = Color(0.4392157, 0.5019608, 0.5647059, 1)

Slate gray color.

const SNOW = Color(1, 0.98039216, 0.98039216, 1)

Snow color.

const SPRING_GREEN = Color(0, 1, 0.49803922, 1)

Spring green color.

const STEEL_BLUE = Color(0.27450982, 0.50980395, 0.7058824, 1)

Steel blue color.

const TAN = Color(0.8235294, 0.7058824, 0.54901963, 1)

Tan color.

const TEAL = Color(0, 0.5019608, 0.5019608, 1)

Teal color.

const THISTLE = Color(0.84705883, 0.7490196, 0.84705883, 1)

Thistle color.

const TOMATO = Color(1, 0.3882353, 0.2784314, 1)

Tomato color.

const TRANSPARENT = Color(1, 1, 1, 0)

Transparent color (white with zero alpha).

const TURQUOISE = Color(0.2509804, 0.8784314, 0.8156863, 1)

Turquoise color.

const VIOLET = Color(0.93333334, 0.50980395, 0.93333334, 1)

Violet color.

const WEB_GRAY = Color(0.5019608, 0.5019608, 0.5019608, 1)

Web gray color.

const WEB_GREEN = Color(0, 0.5019608, 0, 1)

Web green color.

const WEB_MAROON = Color(0.5019608, 0, 0, 1)

Web maroon color.

const WEB_PURPLE = Color(0.5019608, 0, 0.5019608, 1)

Web purple color.

const WHEAT = Color(0.9607843, 0.87058824, 0.7019608, 1)

Wheat color.

const WHITE = Color(1, 1, 1, 1)

White color.

const WHITE_SMOKE = Color(0.9607843, 0.9607843, 0.9607843, 1)

White smoke color.

const YELLOW = Color(1, 1, 0, 1)

Yellow color.

const YELLOW_GREEN = Color(0.6039216, 0.8039216, 0.19607843, 1)

Yellow green color.