Color

Functions

Alpha Of

Returns the alpha of the supplied color.

Return Type

Integer

The alpha component of the color

Parameters
Name Type Description
C

Color

The color

Signatures
int alpha_of(color c)
public static int SplashKit.AlphaOf(Color c);
function AlphaOf(c: Color): Integer
def alpha_of(c):

Blue Of

Returns the blue of the supplied color.

Return Type

Integer

The blue component of the color

Parameters
Name Type Description
C

Color

The color

Signatures
int blue_of(color c)
public static int SplashKit.BlueOf(Color c);
function BlueOf(c: Color): Integer
def blue_of(c):

Brightness Of

Returns the brightness of the supplied color.

Return Type

Double

The brightness component of the color

Parameters
Name Type Description
C

Color

The color

Signatures
double brightness_of(color c)
public static double SplashKit.BrightnessOf(Color c);
function BrightnessOf(c: Color): Double
def brightness_of(c):

Color Alice Blue

Generates a new Color associated to the color Alice Blue.

Return Type

Color

A new Color set to Alice Blue.

Signatures
#define COLOR_ALICE_BLUE
color color_alice_blue()
public static Color Color.AliceBlue { get }
public static Color SplashKit.ColorAliceBlue();
function ColorAliceBlue(): Color
def color_alice_blue():

Color Antique White

Generates a new Color associated to the color Antique White.

Return Type

Color

A new Color set to Antique White.

Signatures
#define COLOR_ANTIQUE_WHITE
color color_antique_white()
public static Color Color.AntiqueWhite { get }
public static Color SplashKit.ColorAntiqueWhite();
function ColorAntiqueWhite(): Color
def color_antique_white():

Color Aqua

Generates a new Color associated to the color Aqua.

Return Type

Color

A new Color set to Aqua.

Signatures
#define COLOR_AQUA
color color_aqua()
public static Color Color.Aqua { get }
public static Color SplashKit.ColorAqua();
function ColorAqua(): Color
def color_aqua():

Color Aquamarine

Generates a new Color associated to the color Aquamarine.

Return Type

Color

A new Color set to Aquamarine.

Signatures
#define COLOR_AQUAMARINE
color color_aquamarine()
public static Color Color.Aquamarine { get }
public static Color SplashKit.ColorAquamarine();
function ColorAquamarine(): Color
def color_aquamarine():

Color Azure

Generates a new Color associated to the color Azure.

Return Type

Color

A new Color set to Azure.

Signatures
#define COLOR_AZURE
color color_azure()
public static Color Color.Azure { get }
public static Color SplashKit.ColorAzure();
function ColorAzure(): Color
def color_azure():

Color Beige

Generates a new Color associated to the color Beige.

Return Type

Color

A new Color set to Beige.

Signatures
#define COLOR_BEIGE
color color_beige()
public static Color Color.Beige { get }
public static Color SplashKit.ColorBeige();
function ColorBeige(): Color
def color_beige():

Color Bisque

Generates a new Color associated to the color Bisque.

Return Type

Color

A new Color set to Bisque.

Signatures
#define COLOR_BISQUE
color color_bisque()
public static Color Color.Bisque { get }
public static Color SplashKit.ColorBisque();
function ColorBisque(): Color
def color_bisque():

Color Black

Generates a new Color associated to the color Black.

Return Type

Color

A new Color set to Black.

Signatures
#define COLOR_BLACK
color color_black()
public static Color Color.Black { get }
public static Color SplashKit.ColorBlack();
function ColorBlack(): Color
def color_black():

Color Blanched Almond

Generates a new Color associated to the color Blanched Almond.

Return Type

Color

A new Color set to Blanched Almond.

Signatures
#define COLOR_BLANCHED_ALMOND
color color_blanched_almond()
public static Color Color.BlanchedAlmond { get }
public static Color SplashKit.ColorBlanchedAlmond();
function ColorBlanchedAlmond(): Color
def color_blanched_almond():

Color Blue

Generates a new Color associated to the color Blue.

Return Type

Color

A new Color set to Blue.

Signatures
#define COLOR_BLUE
color color_blue()
public static Color Color.Blue { get }
public static Color SplashKit.ColorBlue();
function ColorBlue(): Color
def color_blue():

Color Blue Violet

Generates a new Color associated to the color Blue Violet.

Return Type

Color

A new Color set to Blue Violet.

Signatures
#define COLOR_BLUE_VIOLET
color color_blue_violet()
public static Color Color.BlueViolet { get }
public static Color SplashKit.ColorBlueViolet();
function ColorBlueViolet(): Color
def color_blue_violet():

Color Bright Green

Generates a new Color associated to the color Bright Green.

Return Type

Color

A new Color set to Bright Green.

Signatures
#define COLOR_BRIGHT_GREEN
color color_bright_green()
public static Color Color.BrightGreen { get }
public static Color SplashKit.ColorBrightGreen();
function ColorBrightGreen(): Color
def color_bright_green():

Color Brown

Generates a new Color associated to the color Brown.

Return Type

Color

A new Color set to Brown.

Signatures
#define COLOR_BROWN
color color_brown()
public static Color Color.Brown { get }
public static Color SplashKit.ColorBrown();
function ColorBrown(): Color
def color_brown():

Color Burly Wood

Generates a new Color associated to the color Burly Wood.

Return Type

Color

A new Color set to Burly Wood.

Signatures
#define COLOR_BURLY_WOOD
color color_burly_wood()
public static Color Color.BurlyWood { get }
public static Color SplashKit.ColorBurlyWood();
function ColorBurlyWood(): Color
def color_burly_wood():

Color Cadet Blue

Generates a new Color associated to the color Cadet Blue.

Return Type

Color

A new Color set to Cadet Blue.

Signatures
#define COLOR_CADET_BLUE
color color_cadet_blue()
public static Color Color.CadetBlue { get }
public static Color SplashKit.ColorCadetBlue();
function ColorCadetBlue(): Color
def color_cadet_blue():

Color Chartreuse

Generates a new Color associated to the color Chartreuse.

Return Type

Color

A new Color set to Chartreuse.

Signatures
#define COLOR_CHARTREUSE
color color_chartreuse()
public static Color Color.Chartreuse { get }
public static Color SplashKit.ColorChartreuse();
function ColorChartreuse(): Color
def color_chartreuse():

Color Chocolate

Generates a new Color associated to the color Chocolate.

Return Type

Color

A new Color set to Chocolate.

Signatures
#define COLOR_CHOCOLATE
color color_chocolate()
public static Color Color.Chocolate { get }
public static Color SplashKit.ColorChocolate();
function ColorChocolate(): Color
def color_chocolate():

Color Coral

Generates a new Color associated to the color Coral.

Return Type

Color

A new Color set to Coral.

Signatures
#define COLOR_CORAL
color color_coral()
public static Color Color.Coral { get }
public static Color SplashKit.ColorCoral();
function ColorCoral(): Color
def color_coral():

Color Cornflower Blue

Generates a new Color associated to the color Cornflower Blue.

Return Type

Color

A new Color set to Cornflower Blue.

Signatures
#define COLOR_CORNFLOWER_BLUE
color color_cornflower_blue()
public static Color Color.CornflowerBlue { get }
public static Color SplashKit.ColorCornflowerBlue();
function ColorCornflowerBlue(): Color
def color_cornflower_blue():

Color Cornsilk

Generates a new Color associated to the color Cornsilk.

Return Type

Color

A new Color set to Cornsilk.

Signatures
#define COLOR_CORNSILK
color color_cornsilk()
public static Color Color.Cornsilk { get }
public static Color SplashKit.ColorCornsilk();
function ColorCornsilk(): Color
def color_cornsilk():

Color Crimson

Generates a new Color associated to the color Crimson.

Return Type

Color

A new Color set to Crimson.

Signatures
#define COLOR_CRIMSON
color color_crimson()
public static Color Color.Crimson { get }
public static Color SplashKit.ColorCrimson();
function ColorCrimson(): Color
def color_crimson():

Color Cyan

Generates a new Color associated to the color Cyan.

Return Type

Color

A new Color set to Cyan.

Signatures
#define COLOR_CYAN
color color_cyan()
public static Color Color.Cyan { get }
public static Color SplashKit.ColorCyan();
function ColorCyan(): Color
def color_cyan():

Color Dark Blue

Generates a new Color associated to the color Dark Blue.

Return Type

Color

A new Color set to Dark Blue.

Signatures
#define COLOR_DARK_BLUE
color color_dark_blue()
public static Color Color.DarkBlue { get }
public static Color SplashKit.ColorDarkBlue();
function ColorDarkBlue(): Color
def color_dark_blue():

Color Dark Cyan

Generates a new Color associated to the color Dark Cyan.

Return Type

Color

A new Color set to Dark Cyan.

Signatures
#define COLOR_DARK_CYAN
color color_dark_cyan()
public static Color Color.DarkCyan { get }
public static Color SplashKit.ColorDarkCyan();
function ColorDarkCyan(): Color
def color_dark_cyan():

Color Dark Goldenrod

Generates a new Color associated to the color Dark Goldenrod.

Return Type

Color

A new Color set to Dark Goldenrod.

Signatures
#define COLOR_DARK_GOLDENROD
color color_dark_goldenrod()
public static Color Color.DarkGoldenrod { get }
public static Color SplashKit.ColorDarkGoldenrod();
function ColorDarkGoldenrod(): Color
def color_dark_goldenrod():

Color Dark Gray

Generates a new Color associated to the color Dark Gray.

Return Type

Color

A new Color set to Dark Gray.

Signatures
#define COLOR_DARK_GRAY
color color_dark_gray()
public static Color Color.DarkGray { get }
public static Color SplashKit.ColorDarkGray();
function ColorDarkGray(): Color
def color_dark_gray():

Color Dark Green

Generates a new Color associated to the color Dark Green.

Return Type

Color

A new Color set to Dark Green.

Signatures
#define COLOR_DARK_GREEN
color color_dark_green()
public static Color Color.DarkGreen { get }
public static Color SplashKit.ColorDarkGreen();
function ColorDarkGreen(): Color
def color_dark_green():

Color Dark Khaki

Generates a new Color associated to the color Dark Khaki.

Return Type

Color

A new Color set to Dark Khaki.

Signatures
#define COLOR_DARK_KHAKI
color color_dark_khaki()
public static Color Color.DarkKhaki { get }
public static Color SplashKit.ColorDarkKhaki();
function ColorDarkKhaki(): Color
def color_dark_khaki():

Color Dark Magenta

Generates a new Color associated to the color Dark Magenta.

Return Type

Color

A new Color set to Dark Magenta.

Signatures
#define COLOR_DARK_MAGENTA
color color_dark_magenta()
public static Color Color.DarkMagenta { get }
public static Color SplashKit.ColorDarkMagenta();
function ColorDarkMagenta(): Color
def color_dark_magenta():

Color Dark Olive Green

Generates a new Color associated to the color Dark Olive Green.

Return Type

Color

A new Color set to Dark Olive Green.

Signatures
#define COLOR_DARK_OLIVE_GREEN
color color_dark_olive_green()
public static Color Color.DarkOliveGreen { get }
public static Color SplashKit.ColorDarkOliveGreen();
function ColorDarkOliveGreen(): Color
def color_dark_olive_green():

Color Dark Orange

Generates a new Color associated to the color Dark Orange.

Return Type

Color

A new Color set to Dark Orange.

Signatures
#define COLOR_DARK_ORANGE
color color_dark_orange()
public static Color Color.DarkOrange { get }
public static Color SplashKit.ColorDarkOrange();
function ColorDarkOrange(): Color
def color_dark_orange():

Color Dark Orchid

Generates a new Color associated to the color Dark Orchid.

Return Type

Color

A new Color set to Dark Orchid.

Signatures
#define COLOR_DARK_ORCHID
color color_dark_orchid()
public static Color Color.DarkOrchid { get }
public static Color SplashKit.ColorDarkOrchid();
function ColorDarkOrchid(): Color
def color_dark_orchid():

Color Dark Red

Generates a new Color associated to the color Dark Red.

Return Type

Color

A new Color set to Dark Red.

Signatures
#define COLOR_DARK_RED
color color_dark_red()
public static Color Color.DarkRed { get }
public static Color SplashKit.ColorDarkRed();
function ColorDarkRed(): Color
def color_dark_red():

Color Dark Salmon

Generates a new Color associated to the color Dark Salmon.

Return Type

Color

A new Color set to Dark Salmon.

Signatures
#define COLOR_DARK_SALMON
color color_dark_salmon()
public static Color Color.DarkSalmon { get }
public static Color SplashKit.ColorDarkSalmon();
function ColorDarkSalmon(): Color
def color_dark_salmon():

Color Dark Sea Green

Generates a new Color associated to the color Dark Sea Green.

Return Type

Color

A new Color set to Dark Sea Green.

Signatures
#define COLOR_DARK_SEA_GREEN
color color_dark_sea_green()
public static Color Color.DarkSeaGreen { get }
public static Color SplashKit.ColorDarkSeaGreen();
function ColorDarkSeaGreen(): Color
def color_dark_sea_green():

Color Dark Slate Blue

Generates a new Color associated to the color Dark Slate Blue.

Return Type

Color

A new Color set to Dark Slate Blue.

Signatures
#define COLOR_DARK_SLATE_BLUE
color color_dark_slate_blue()
public static Color Color.DarkSlateBlue { get }
public static Color SplashKit.ColorDarkSlateBlue();
function ColorDarkSlateBlue(): Color
def color_dark_slate_blue():

Color Dark Slate Gray

Generates a new Color associated to the color Dark Slate Gray.

Return Type

Color

A new Color set to Dark Slate Gray.

Signatures
#define COLOR_DARK_SLATE_GRAY
color color_dark_slate_gray()
public static Color Color.DarkSlateGray { get }
public static Color SplashKit.ColorDarkSlateGray();
function ColorDarkSlateGray(): Color
def color_dark_slate_gray():

Color Dark Turquoise

Generates a new Color associated to the color Dark Turquoise.

Return Type

Color

A new Color set to Dark Turquoise.

Signatures
#define COLOR_DARK_TURQUOISE
color color_dark_turquoise()
public static Color Color.DarkTurquoise { get }
public static Color SplashKit.ColorDarkTurquoise();
function ColorDarkTurquoise(): Color
def color_dark_turquoise():

Color Dark Violet

Generates a new Color associated to the color Dark Violet.

Return Type

Color

A new Color set to Dark Violet.

Signatures
#define COLOR_DARK_VIOLET
color color_dark_violet()
public static Color Color.DarkViolet { get }
public static Color SplashKit.ColorDarkViolet();
function ColorDarkViolet(): Color
def color_dark_violet():

Color Deep Pink

Generates a new Color associated to the color Deep Pink.

Return Type

Color

A new Color set to Deep Pink.

Signatures
#define COLOR_DEEP_PINK
color color_deep_pink()
public static Color Color.DeepPink { get }
public static Color SplashKit.ColorDeepPink();
function ColorDeepPink(): Color
def color_deep_pink():

Color Deep Sky Blue

Generates a new Color associated to the color Deep Sky Blue.

Return Type

Color

A new Color set to Deep Sky Blue.

Signatures
#define COLOR_DEEP_SKY_BLUE
color color_deep_sky_blue()
public static Color Color.DeepSkyBlue { get }
public static Color SplashKit.ColorDeepSkyBlue();
function ColorDeepSkyBlue(): Color
def color_deep_sky_blue():

Color Dim Gray

Generates a new Color associated to the color Dim Gray.

Return Type

Color

A new Color set to Dim Gray.

Signatures
#define COLOR_DIM_GRAY
color color_dim_gray()
public static Color Color.DimGray { get }
public static Color SplashKit.ColorDimGray();
function ColorDimGray(): Color
def color_dim_gray():

Color Dodger Blue

Generates a new Color associated to the color Dodger Blue.

Return Type

Color

A new Color set to Dodger Blue.

Signatures
#define COLOR_DODGER_BLUE
color color_dodger_blue()
public static Color Color.DodgerBlue { get }
public static Color SplashKit.ColorDodgerBlue();
function ColorDodgerBlue(): Color
def color_dodger_blue():

Color Firebrick

Generates a new Color associated to the color Firebrick.

Return Type

Color

A new Color set to Firebrick.

Signatures
#define COLOR_FIREBRICK
color color_firebrick()
public static Color Color.Firebrick { get }
public static Color SplashKit.ColorFirebrick();
function ColorFirebrick(): Color
def color_firebrick():

Color Floral White

Generates a new Color associated to the color Floral White.

Return Type

Color

A new Color set to Floral White.

Signatures
#define COLOR_FLORAL_WHITE
color color_floral_white()
public static Color Color.FloralWhite { get }
public static Color SplashKit.ColorFloralWhite();
function ColorFloralWhite(): Color
def color_floral_white():

Color Forest Green

Generates a new Color associated to the color Forest Green.

Return Type

Color

A new Color set to Forest Green.

Signatures
#define COLOR_FOREST_GREEN
color color_forest_green()
public static Color Color.ForestGreen { get }
public static Color SplashKit.ColorForestGreen();
function ColorForestGreen(): Color
def color_forest_green():

Color Fuchsia

Generates a new Color associated to the color Fuchsia.

Return Type

Color

A new Color set to Fuchsia.

Signatures
#define COLOR_FUCHSIA
color color_fuchsia()
public static Color Color.Fuchsia { get }
public static Color SplashKit.ColorFuchsia();
function ColorFuchsia(): Color
def color_fuchsia():

Color Gainsboro

Generates a new Color associated to the color Gainsboro.

Return Type

Color

A new Color set to Gainsboro.

Signatures
#define COLOR_GAINSBORO
color color_gainsboro()
public static Color Color.Gainsboro { get }
public static Color SplashKit.ColorGainsboro();
function ColorGainsboro(): Color
def color_gainsboro():

Color Ghost White

Generates a new Color associated to the color Ghost White.

Return Type

Color

A new Color set to Ghost White.

Signatures
#define COLOR_GHOST_WHITE
color color_ghost_white()
public static Color Color.GhostWhite { get }
public static Color SplashKit.ColorGhostWhite();
function ColorGhostWhite(): Color
def color_ghost_white():

Color Gold

Generates a new Color associated to the color Gold.

Return Type

Color

A new Color set to Gold.

Signatures
#define COLOR_GOLD
color color_gold()
public static Color Color.Gold { get }
public static Color SplashKit.ColorGold();
function ColorGold(): Color
def color_gold():

Color Goldenrod

Generates a new Color associated to the color Goldenrod.

Return Type

Color

A new Color set to Goldenrod.

Signatures
#define COLOR_GOLDENROD
color color_goldenrod()
public static Color Color.Goldenrod { get }
public static Color SplashKit.ColorGoldenrod();
function ColorGoldenrod(): Color
def color_goldenrod():

Color Gray

Generates a new Color associated to the color Gray.

Return Type

Color

A new Color set to Gray.

Signatures
#define COLOR_GRAY
color color_gray()
public static Color Color.Gray { get }
public static Color SplashKit.ColorGray();
function ColorGray(): Color
def color_gray():

Color Green

Generates a new Color associated to the color Green.

Return Type

Color

A new Color set to Green.

Signatures
#define COLOR_GREEN
color color_green()
public static Color Color.Green { get }
public static Color SplashKit.ColorGreen();
function ColorGreen(): Color
def color_green():

Color Green Yellow

Generates a new Color associated to the color Green Yellow.

Return Type

Color

A new Color set to Green Yellow.

Signatures
#define COLOR_GREEN_YELLOW
color color_green_yellow()
public static Color Color.GreenYellow { get }
public static Color SplashKit.ColorGreenYellow();
function ColorGreenYellow(): Color
def color_green_yellow():

Color Honeydew

Generates a new Color associated to the color Honeydew.

Return Type

Color

A new Color set to Honeydew.

Signatures
#define COLOR_HONEYDEW
color color_honeydew()
public static Color Color.Honeydew { get }
public static Color SplashKit.ColorHoneydew();
function ColorHoneydew(): Color
def color_honeydew():

Color Hot Pink

Generates a new Color associated to the color Hot Pink.

Return Type

Color

A new Color set to Hot Pink.

Signatures
#define COLOR_HOT_PINK
color color_hot_pink()
public static Color Color.HotPink { get }
public static Color SplashKit.ColorHotPink();
function ColorHotPink(): Color
def color_hot_pink():

Color Indian Red

Generates a new Color associated to the color Indian Red.

Return Type

Color

A new Color set to Indian Red.

Signatures
#define COLOR_INDIAN_RED
color color_indian_red()
public static Color Color.IndianRed { get }
public static Color SplashKit.ColorIndianRed();
function ColorIndianRed(): Color
def color_indian_red():

Color Indigo

Generates a new Color associated to the color Indigo.

Return Type

Color

A new Color set to Indigo.

Signatures
#define COLOR_INDIGO
color color_indigo()
public static Color Color.Indigo { get }
public static Color SplashKit.ColorIndigo();
function ColorIndigo(): Color
def color_indigo():

Color Ivory

Generates a new Color associated to the color Ivory.

Return Type

Color

A new Color set to Ivory.

Signatures
#define COLOR_IVORY
color color_ivory()
public static Color Color.Ivory { get }
public static Color SplashKit.ColorIvory();
function ColorIvory(): Color
def color_ivory():

Color Khaki

Generates a new Color associated to the color Khaki.

Return Type

Color

A new Color set to Khaki.

Signatures
#define COLOR_KHAKI
color color_khaki()
public static Color Color.Khaki { get }
public static Color SplashKit.ColorKhaki();
function ColorKhaki(): Color
def color_khaki():

Color Lavender

Generates a new Color associated to the color Lavender.

Return Type

Color

A new Color set to Lavender.

Signatures
#define COLOR_LAVENDER
color color_lavender()
public static Color Color.Lavender { get }
public static Color SplashKit.ColorLavender();
function ColorLavender(): Color
def color_lavender():

Color Lavender Blush

Generates a new Color associated to the color Lavender Blush.

Return Type

Color

A new Color set to Lavender Blush.

Signatures
#define COLOR_LAVENDER_BLUSH
color color_lavender_blush()
public static Color Color.LavenderBlush { get }
public static Color SplashKit.ColorLavenderBlush();
function ColorLavenderBlush(): Color
def color_lavender_blush():

Color Lawn Green

Generates a new Color associated to the color Lawn Green.

Return Type

Color

A new Color set to Lawn Green.

Signatures
#define COLOR_LAWN_GREEN
color color_lawn_green()
public static Color Color.LawnGreen { get }
public static Color SplashKit.ColorLawnGreen();
function ColorLawnGreen(): Color
def color_lawn_green():

Color Lemon Chiffon

Generates a new Color associated to the color Lemon Chiffon.

Return Type

Color

A new Color set to Lemon Chiffon.

Signatures
#define COLOR_LEMON_CHIFFON
color color_lemon_chiffon()
public static Color Color.LemonChiffon { get }
public static Color SplashKit.ColorLemonChiffon();
function ColorLemonChiffon(): Color
def color_lemon_chiffon():

Color Light Blue

Generates a new Color associated to the color Light Blue.

Return Type

Color

A new Color set to Light Blue.

Signatures
#define COLOR_LIGHT_BLUE
color color_light_blue()
public static Color Color.LightBlue { get }
public static Color SplashKit.ColorLightBlue();
function ColorLightBlue(): Color
def color_light_blue():

Color Light Coral

Generates a new Color associated to the color Light Coral.

Return Type

Color

A new Color set to Light Coral.

Signatures
#define COLOR_LIGHT_CORAL
color color_light_coral()
public static Color Color.LightCoral { get }
public static Color SplashKit.ColorLightCoral();
function ColorLightCoral(): Color
def color_light_coral():

Color Light Cyan

Generates a new Color associated to the color Light Cyan.

Return Type

Color

A new Color set to Light Cyan.

Signatures
#define COLOR_LIGHT_CYAN
color color_light_cyan()
public static Color Color.LightCyan { get }
public static Color SplashKit.ColorLightCyan();
function ColorLightCyan(): Color
def color_light_cyan():

Color Light Goldenrod Yellow

Generates a new Color associated to the color Light Goldenrod Yellow.

Return Type

Color

A new Color set to Light Goldenrod Yellow.

Signatures
#define COLOR_LIGHT_GOLDENROD_YELLOW
color color_light_goldenrod_yellow()
public static Color Color.LightGoldenrodYellow { get }
public static Color SplashKit.ColorLightGoldenrodYellow();
function ColorLightGoldenrodYellow(): Color
def color_light_goldenrod_yellow():

Color Light Gray

Generates a new Color associated to the color Light Gray.

Return Type

Color

A new Color set to Light Gray.

Signatures
#define COLOR_LIGHT_GRAY
color color_light_gray()
public static Color Color.LightGray { get }
public static Color SplashKit.ColorLightGray();
function ColorLightGray(): Color
def color_light_gray():

Color Light Green

Generates a new Color associated to the color Light Green.

Return Type

Color

A new Color set to Light Green.

Signatures
#define COLOR_LIGHT_GREEN
color color_light_green()
public static Color Color.LightGreen { get }
public static Color SplashKit.ColorLightGreen();
function ColorLightGreen(): Color
def color_light_green():

Color Light Pink

Generates a new Color associated to the color Light Pink.

Return Type

Color

A new Color set to Light Pink.

Signatures
#define COLOR_LIGHT_PINK
color color_light_pink()
public static Color Color.LightPink { get }
public static Color SplashKit.ColorLightPink();
function ColorLightPink(): Color
def color_light_pink():

Color Light Salmon

Generates a new Color associated to the color Light Salmon.

Return Type

Color

A new Color set to Light Salmon.

Signatures
#define COLOR_LIGHT_SALMON
color color_light_salmon()
public static Color Color.LightSalmon { get }
public static Color SplashKit.ColorLightSalmon();
function ColorLightSalmon(): Color
def color_light_salmon():

Color Light Sea Green

Generates a new Color associated to the color Light Sea Green.

Return Type

Color

A new Color set to Light Sea Green.

Signatures
#define COLOR_LIGHT_SEA_GREEN
color color_light_sea_green()
public static Color Color.LightSeaGreen { get }
public static Color SplashKit.ColorLightSeaGreen();
function ColorLightSeaGreen(): Color
def color_light_sea_green():

Color Light Sky Blue

Generates a new Color associated to the color Light Sky Blue.

Return Type

Color

A new Color set to Light Sky Blue.

Signatures
#define COLOR_LIGHT_SKY_BLUE
color color_light_sky_blue()
public static Color Color.LightSkyBlue { get }
public static Color SplashKit.ColorLightSkyBlue();
function ColorLightSkyBlue(): Color
def color_light_sky_blue():

Color Light Slate Gray

Generates a new Color associated to the color Light Slate Gray.

Return Type

Color

A new Color set to Light Slate Gray.

Signatures
#define COLOR_LIGHT_SLATE_GRAY
color color_light_slate_gray()
public static Color Color.LightSlateGray { get }
public static Color SplashKit.ColorLightSlateGray();
function ColorLightSlateGray(): Color
def color_light_slate_gray():

Color Light Steel Blue

Generates a new Color associated to the color Light Steel Blue.

Return Type

Color

A new Color set to Light Steel Blue.

Signatures
#define COLOR_LIGHT_STEEL_BLUE
color color_light_steel_blue()
public static Color Color.LightSteelBlue { get }
public static Color SplashKit.ColorLightSteelBlue();
function ColorLightSteelBlue(): Color
def color_light_steel_blue():

Color Light Yellow

Generates a new Color associated to the color Light Yellow.

Return Type

Color

A new Color set to Light Yellow.

Signatures
#define COLOR_LIGHT_YELLOW
color color_light_yellow()
public static Color Color.LightYellow { get }
public static Color SplashKit.ColorLightYellow();
function ColorLightYellow(): Color
def color_light_yellow():

Color Lime

Generates a new Color associated to the color Lime.

Return Type

Color

A new Color set to Lime.

Signatures
#define COLOR_LIME
color color_lime()
public static Color Color.Lime { get }
public static Color SplashKit.ColorLime();
function ColorLime(): Color
def color_lime():

Color Lime Green

Generates a new Color associated to the color Lime Green.

Return Type

Color

A new Color set to Lime Green.

Signatures
#define COLOR_LIME_GREEN
color color_lime_green()
public static Color Color.LimeGreen { get }
public static Color SplashKit.ColorLimeGreen();
function ColorLimeGreen(): Color
def color_lime_green():

Color Linen

Generates a new Color associated to the color Linen.

Return Type

Color

A new Color set to Linen.

Signatures
#define COLOR_LINEN
color color_linen()
public static Color Color.Linen { get }
public static Color SplashKit.ColorLinen();
function ColorLinen(): Color
def color_linen():

Color Magenta

Generates a new Color associated to the color Magenta.

Return Type

Color

A new Color set to Magenta.

Signatures
#define COLOR_MAGENTA
color color_magenta()
public static Color Color.Magenta { get }
public static Color SplashKit.ColorMagenta();
function ColorMagenta(): Color
def color_magenta():

Color Maroon

Generates a new Color associated to the color Maroon.

Return Type

Color

A new Color set to Maroon.

Signatures
#define COLOR_MAROON
color color_maroon()
public static Color Color.Maroon { get }
public static Color SplashKit.ColorMaroon();
function ColorMaroon(): Color
def color_maroon():

Color Medium Aquamarine

Generates a new Color associated to the color Medium Aquamarine.

Return Type

Color

A new Color set to Medium Aquamarine.

Signatures
#define COLOR_MEDIUM_AQUAMARINE
color color_medium_aquamarine()
public static Color Color.MediumAquamarine { get }
public static Color SplashKit.ColorMediumAquamarine();
function ColorMediumAquamarine(): Color
def color_medium_aquamarine():

Color Medium Blue

Generates a new Color associated to the color Medium Blue.

Return Type

Color

A new Color set to Medium Blue.

Signatures
#define COLOR_MEDIUM_BLUE
color color_medium_blue()
public static Color Color.MediumBlue { get }
public static Color SplashKit.ColorMediumBlue();
function ColorMediumBlue(): Color
def color_medium_blue():

Color Medium Orchid

Generates a new Color associated to the color Medium Orchid.

Return Type

Color

A new Color set to Medium Orchid.

Signatures
#define COLOR_MEDIUM_ORCHID
color color_medium_orchid()
public static Color Color.MediumOrchid { get }
public static Color SplashKit.ColorMediumOrchid();
function ColorMediumOrchid(): Color
def color_medium_orchid():

Color Medium Purple

Generates a new Color associated to the color Medium Purple.

Return Type

Color

A new Color set to Medium Purple.

Signatures
#define COLOR_MEDIUM_PURPLE
color color_medium_purple()
public static Color Color.MediumPurple { get }
public static Color SplashKit.ColorMediumPurple();
function ColorMediumPurple(): Color
def color_medium_purple():

Color Medium Sea Green

Generates a new Color associated to the color Medium Sea Green.

Return Type

Color

A new Color set to Medium Sea Green.

Signatures
#define COLOR_MEDIUM_SEA_GREEN
color color_medium_sea_green()
public static Color Color.MediumSeaGreen { get }
public static Color SplashKit.ColorMediumSeaGreen();
function ColorMediumSeaGreen(): Color
def color_medium_sea_green():

Color Medium Slate Blue

Generates a new Color associated to the color Medium Slate Blue.

Return Type

Color

A new Color set to Medium Slate Blue.

Signatures
#define COLOR_MEDIUM_SLATE_BLUE
color color_medium_slate_blue()
public static Color Color.MediumSlateBlue { get }
public static Color SplashKit.ColorMediumSlateBlue();
function ColorMediumSlateBlue(): Color
def color_medium_slate_blue():

Color Medium Spring Green

Generates a new Color associated to the color Medium Spring Green.

Return Type

Color

A new Color set to Medium Spring Green.

Signatures
#define COLOR_MEDIUM_SPRING_GREEN
color color_medium_spring_green()
public static Color Color.MediumSpringGreen { get }
public static Color SplashKit.ColorMediumSpringGreen();
function ColorMediumSpringGreen(): Color
def color_medium_spring_green():

Color Medium Turquoise

Generates a new Color associated to the color Medium Turquoise.

Return Type

Color

A new Color set to Medium Turquoise.

Signatures
#define COLOR_MEDIUM_TURQUOISE
color color_medium_turquoise()
public static Color Color.MediumTurquoise { get }
public static Color SplashKit.ColorMediumTurquoise();
function ColorMediumTurquoise(): Color
def color_medium_turquoise():

Color Medium Violet Red

Generates a new Color associated to the color Medium Violet Red.

Return Type

Color

A new Color set to Medium Violet Red.

Signatures
#define COLOR_MEDIUM_VIOLET_RED
color color_medium_violet_red()
public static Color Color.MediumVioletRed { get }
public static Color SplashKit.ColorMediumVioletRed();
function ColorMediumVioletRed(): Color
def color_medium_violet_red():

Color Midnight Blue

Generates a new Color associated to the color Midnight Blue.

Return Type

Color

A new Color set to Midnight Blue.

Signatures
#define COLOR_MIDNIGHT_BLUE
color color_midnight_blue()
public static Color Color.MidnightBlue { get }
public static Color SplashKit.ColorMidnightBlue();
function ColorMidnightBlue(): Color
def color_midnight_blue():

Color Mint Cream

Generates a new Color associated to the color Mint Cream.

Return Type

Color

A new Color set to Mint Cream.

Signatures
#define COLOR_MINT_CREAM
color color_mint_cream()
public static Color Color.MintCream { get }
public static Color SplashKit.ColorMintCream();
function ColorMintCream(): Color
def color_mint_cream():

Color Misty Rose

Generates a new Color associated to the color Misty Rose.

Return Type

Color

A new Color set to Misty Rose.

Signatures
#define COLOR_MISTY_ROSE
color color_misty_rose()
public static Color Color.MistyRose { get }
public static Color SplashKit.ColorMistyRose();
function ColorMistyRose(): Color
def color_misty_rose():

Color Moccasin

Generates a new Color associated to the color Moccasin.

Return Type

Color

A new Color set to Moccasin.

Signatures
#define COLOR_MOCCASIN
color color_moccasin()
public static Color Color.Moccasin { get }
public static Color SplashKit.ColorMoccasin();
function ColorMoccasin(): Color
def color_moccasin():

Color Navajo White

Generates a new Color associated to the color Navajo White.

Return Type

Color

A new Color set to Navajo White.

Signatures
#define COLOR_NAVAJO_WHITE
color color_navajo_white()
public static Color Color.NavajoWhite { get }
public static Color SplashKit.ColorNavajoWhite();
function ColorNavajoWhite(): Color
def color_navajo_white():

Color Navy

Generates a new Color associated to the color Navy.

Return Type

Color

A new Color set to Navy.

Signatures
#define COLOR_NAVY
color color_navy()
public static Color Color.Navy { get }
public static Color SplashKit.ColorNavy();
function ColorNavy(): Color
def color_navy():

Color Old Lace

Generates a new Color associated to the color Old Lace.

Return Type

Color

A new Color set to Old Lace.

Signatures
#define COLOR_OLD_LACE
color color_old_lace()
public static Color Color.OldLace { get }
public static Color SplashKit.ColorOldLace();
function ColorOldLace(): Color
def color_old_lace():

Color Olive

Generates a new Color associated to the color Olive.

Return Type

Color

A new Color set to Olive.

Signatures
#define COLOR_OLIVE
color color_olive()
public static Color Color.Olive { get }
public static Color SplashKit.ColorOlive();
function ColorOlive(): Color
def color_olive():

Color Olive Drab

Generates a new Color associated to the color Olive Drab.

Return Type

Color

A new Color set to Olive Drab.

Signatures
#define COLOR_OLIVE_DRAB
color color_olive_drab()
public static Color Color.OliveDrab { get }
public static Color SplashKit.ColorOliveDrab();
function ColorOliveDrab(): Color
def color_olive_drab():

Color Orange

Generates a new Color associated to the color Orange.

Return Type

Color

A new Color set to Orange.

Signatures
#define COLOR_ORANGE
color color_orange()
public static Color Color.Orange { get }
public static Color SplashKit.ColorOrange();
function ColorOrange(): Color
def color_orange():

Color Orange Red

Generates a new Color associated to the color Orange Red.

Return Type

Color

A new Color set to Orange Red.

Signatures
#define COLOR_ORANGE_RED
color color_orange_red()
public static Color Color.OrangeRed { get }
public static Color SplashKit.ColorOrangeRed();
function ColorOrangeRed(): Color
def color_orange_red():

Color Orchid

Generates a new Color associated to the color Orchid.

Return Type

Color

A new Color set to Orchid.

Signatures
#define COLOR_ORCHID
color color_orchid()
public static Color Color.Orchid { get }
public static Color SplashKit.ColorOrchid();
function ColorOrchid(): Color
def color_orchid():

Color Pale Goldenrod

Generates a new Color associated to the color Pale Goldenrod.

Return Type

Color

A new Color set to Pale Goldenrod.

Signatures
#define COLOR_PALE_GOLDENROD
color color_pale_goldenrod()
public static Color Color.PaleGoldenrod { get }
public static Color SplashKit.ColorPaleGoldenrod();
function ColorPaleGoldenrod(): Color
def color_pale_goldenrod():

Color Pale Green

Generates a new Color associated to the color Pale Green.

Return Type

Color

A new Color set to Pale Green.

Signatures
#define COLOR_PALE_GREEN
color color_pale_green()
public static Color Color.PaleGreen { get }
public static Color SplashKit.ColorPaleGreen();
function ColorPaleGreen(): Color
def color_pale_green():

Color Pale Turquoise

Generates a new Color associated to the color Pale Turquoise.

Return Type

Color

A new Color set to Pale Turquoise.

Signatures
#define COLOR_PALE_TURQUOISE
color color_pale_turquoise()
public static Color Color.PaleTurquoise { get }
public static Color SplashKit.ColorPaleTurquoise();
function ColorPaleTurquoise(): Color
def color_pale_turquoise():

Color Pale Violet Red

Generates a new Color associated to the color Pale Violet Red.

Return Type

Color

A new Color set to Pale Violet Red.

Signatures
#define COLOR_PALE_VIOLET_RED
color color_pale_violet_red()
public static Color Color.PaleVioletRed { get }
public static Color SplashKit.ColorPaleVioletRed();
function ColorPaleVioletRed(): Color
def color_pale_violet_red():

Color Papaya Whip

Generates a new Color associated to the color Papaya Whip.

Return Type

Color

A new Color set to Papaya Whip.

Signatures
#define COLOR_PAPAYA_WHIP
color color_papaya_whip()
public static Color Color.PapayaWhip { get }
public static Color SplashKit.ColorPapayaWhip();
function ColorPapayaWhip(): Color
def color_papaya_whip():

Color Peach Puff

Generates a new Color associated to the color Peach Puff.

Return Type

Color

A new Color set to Peach Puff.

Signatures
#define COLOR_PEACH_PUFF
color color_peach_puff()
public static Color Color.PeachPuff { get }
public static Color SplashKit.ColorPeachPuff();
function ColorPeachPuff(): Color
def color_peach_puff():

Color Peru

Generates a new Color associated to the color Peru.

Return Type

Color

A new Color set to Peru.

Signatures
#define COLOR_PERU
color color_peru()
public static Color Color.Peru { get }
public static Color SplashKit.ColorPeru();
function ColorPeru(): Color
def color_peru():

Color Pink

Generates a new Color associated to the color Pink.

Return Type

Color

A new Color set to Pink.

Signatures
#define COLOR_PINK
color color_pink()
public static Color Color.Pink { get }
public static Color SplashKit.ColorPink();
function ColorPink(): Color
def color_pink():

Color Plum

Generates a new Color associated to the color Plum.

Return Type

Color

A new Color set to Plum.

Signatures
#define COLOR_PLUM
color color_plum()
public static Color Color.Plum { get }
public static Color SplashKit.ColorPlum();
function ColorPlum(): Color
def color_plum():

Color Powder Blue

Generates a new Color associated to the color Powder Blue.

Return Type

Color

A new Color set to Powder Blue.

Signatures
#define COLOR_POWDER_BLUE
color color_powder_blue()
public static Color Color.PowderBlue { get }
public static Color SplashKit.ColorPowderBlue();
function ColorPowderBlue(): Color
def color_powder_blue():

Color Purple

Generates a new Color associated to the color Purple.

Return Type

Color

A new Color set to Purple.

Signatures
#define COLOR_PURPLE
color color_purple()
public static Color Color.Purple { get }
public static Color SplashKit.ColorPurple();
function ColorPurple(): Color
def color_purple():

Color Red

Generates a new Color associated to the color Red.

Return Type

Color

A new Color set to Red.

Signatures
#define COLOR_RED
color color_red()
public static Color Color.Red { get }
public static Color SplashKit.ColorRed();
function ColorRed(): Color
def color_red():

Color Rosy Brown

Generates a new Color associated to the color Rosy Brown.

Return Type

Color

A new Color set to Rosy Brown.

Signatures
#define COLOR_ROSY_BROWN
color color_rosy_brown()
public static Color Color.RosyBrown { get }
public static Color SplashKit.ColorRosyBrown();
function ColorRosyBrown(): Color
def color_rosy_brown():

Color Royal Blue

Generates a new Color associated to the color Royal Blue.

Return Type

Color

A new Color set to Royal Blue.

Signatures
#define COLOR_ROYAL_BLUE
color color_royal_blue()
public static Color Color.RoyalBlue { get }
public static Color SplashKit.ColorRoyalBlue();
function ColorRoyalBlue(): Color
def color_royal_blue():

Color Saddle Brown

Generates a new Color associated to the color Saddle Brown.

Return Type

Color

A new Color set to Saddle Brown.

Signatures
#define COLOR_SADDLE_BROWN
color color_saddle_brown()
public static Color Color.SaddleBrown { get }
public static Color SplashKit.ColorSaddleBrown();
function ColorSaddleBrown(): Color
def color_saddle_brown():

Color Salmon

Generates a new Color associated to the color Salmon.

Return Type

Color

A new Color set to Salmon.

Signatures
#define COLOR_SALMON
color color_salmon()
public static Color Color.Salmon { get }
public static Color SplashKit.ColorSalmon();
function ColorSalmon(): Color
def color_salmon():

Color Sandy Brown

Generates a new Color associated to the color Sandy Brown.

Return Type

Color

A new Color set to Sandy Brown.

Signatures
#define COLOR_SANDY_BROWN
color color_sandy_brown()
public static Color Color.SandyBrown { get }
public static Color SplashKit.ColorSandyBrown();
function ColorSandyBrown(): Color
def color_sandy_brown():

Color Sea Green

Generates a new Color associated to the color Sea Green.

Return Type

Color

A new Color set to Sea Green.

Signatures
#define COLOR_SEA_GREEN
color color_sea_green()
public static Color Color.SeaGreen { get }
public static Color SplashKit.ColorSeaGreen();
function ColorSeaGreen(): Color
def color_sea_green():

Color Sea Shell

Generates a new Color associated to the color Sea Shell.

Return Type

Color

A new Color set to Sea Shell.

Signatures
#define COLOR_SEA_SHELL
color color_sea_shell()
public static Color Color.SeaShell { get }
public static Color SplashKit.ColorSeaShell();
function ColorSeaShell(): Color
def color_sea_shell():

Color Sienna

Generates a new Color associated to the color Sienna.

Return Type

Color

A new Color set to Sienna.

Signatures
#define COLOR_SIENNA
color color_sienna()
public static Color Color.Sienna { get }
public static Color SplashKit.ColorSienna();
function ColorSienna(): Color
def color_sienna():

Color Silver

Generates a new Color associated to the color Silver.

Return Type

Color

A new Color set to Silver.

Signatures
#define COLOR_SILVER
color color_silver()
public static Color Color.Silver { get }
public static Color SplashKit.ColorSilver();
function ColorSilver(): Color
def color_silver():

Color Sky Blue

Generates a new Color associated to the color Sky Blue.

Return Type

Color

A new Color set to Sky Blue.

Signatures
#define COLOR_SKY_BLUE
color color_sky_blue()
public static Color Color.SkyBlue { get }
public static Color SplashKit.ColorSkyBlue();
function ColorSkyBlue(): Color
def color_sky_blue():

Color Slate Blue

Generates a new Color associated to the color Slate Blue.

Return Type

Color

A new Color set to Slate Blue.

Signatures
#define COLOR_SLATE_BLUE
color color_slate_blue()
public static Color Color.SlateBlue { get }
public static Color SplashKit.ColorSlateBlue();
function ColorSlateBlue(): Color
def color_slate_blue():

Color Slate Gray

Generates a new Color associated to the color Slate Gray.

Return Type

Color

A new Color set to Slate Gray.

Signatures
#define COLOR_SLATE_GRAY
color color_slate_gray()
public static Color Color.SlateGray { get }
public static Color SplashKit.ColorSlateGray();
function ColorSlateGray(): Color
def color_slate_gray():

Color Snow

Generates a new Color associated to the color Snow.

Return Type

Color

A new Color set to Snow.

Signatures
#define COLOR_SNOW
color color_snow()
public static Color Color.Snow { get }
public static Color SplashKit.ColorSnow();
function ColorSnow(): Color
def color_snow():

Color Spring Green

Generates a new Color associated to the color Spring Green.

Return Type

Color

A new Color set to Spring Green.

Signatures
#define COLOR_SPRING_GREEN
color color_spring_green()
public static Color Color.SpringGreen { get }
public static Color SplashKit.ColorSpringGreen();
function ColorSpringGreen(): Color
def color_spring_green():

Color Steel Blue

Generates a new Color associated to the color Steel Blue.

Return Type

Color

A new Color set to Steel Blue.

Signatures
#define COLOR_STEEL_BLUE
color color_steel_blue()
public static Color Color.SteelBlue { get }
public static Color SplashKit.ColorSteelBlue();
function ColorSteelBlue(): Color
def color_steel_blue():

Color Swinburne Red

Generates a new Color associated to the color Swinburne Red.

Return Type

Color

A new Color set to Swinburne Red.

Signatures
#define COLOR_SWINBURNE_RED
color color_swinburne_red()
public static Color Color.SwinburneRed { get }
public static Color SplashKit.ColorSwinburneRed();
function ColorSwinburneRed(): Color
def color_swinburne_red():

Color Tan

Generates a new Color associated to the color Tan.

Return Type

Color

A new Color set to Tan.

Signatures
#define COLOR_TAN
color color_tan()
public static Color Color.Tan { get }
public static Color SplashKit.ColorTan();
function ColorTan(): Color
def color_tan():

Color Teal

Generates a new Color associated to the color Teal.

Return Type

Color

A new Color set to Teal.

Signatures
#define COLOR_TEAL
color color_teal()
public static Color Color.Teal { get }
public static Color SplashKit.ColorTeal();
function ColorTeal(): Color
def color_teal():

Color Thistle

Generates a new Color associated to the color Thistle.

Return Type

Color

A new Color set to Thistle.

Signatures
#define COLOR_THISTLE
color color_thistle()
public static Color Color.Thistle { get }
public static Color SplashKit.ColorThistle();
function ColorThistle(): Color
def color_thistle():

Color To String

Returns a string representation of the color. Format will be a hex string starting with a #, followed by the red, green, blue, and alpha values of the color.

Return Type

String

A hex string representing the color

Parameters
Name Type Description
C

Color

The color

Signatures
string color_to_string(color c)
public static string SplashKit.ColorToString(Color c);
function ColorToString(c: Color): String
def color_to_string(c):

Color Tomato

Generates a new Color associated to the color Tomato.

Return Type

Color

A new Color set to Tomato.

Signatures
#define COLOR_TOMATO
color color_tomato()
public static Color Color.Tomato { get }
public static Color SplashKit.ColorTomato();
function ColorTomato(): Color
def color_tomato():

Color Transparent

Generates a new Color associated to the color Transparent.

Return Type

Color

A Transparent color (i.e., a color with an Alpha of 0).

Signatures
#define COLOR_TRANSPARENT
color color_transparent()
public static Color Color.Transparent { get }
public static Color SplashKit.ColorTransparent();
function ColorTransparent(): Color
def color_transparent():

Color Turquoise

Generates a new Color associated to the color Turquoise.

Return Type

Color

A new Color set to Turquoise.

Signatures
#define COLOR_TURQUOISE
color color_turquoise()
public static Color Color.Turquoise { get }
public static Color SplashKit.ColorTurquoise();
function ColorTurquoise(): Color
def color_turquoise():

Color Violet

Generates a new Color associated to the color Violet.

Return Type

Color

A new Color set to Violet.

Signatures
#define COLOR_VIOLET
color color_violet()
public static Color Color.Violet { get }
public static Color SplashKit.ColorViolet();
function ColorViolet(): Color
def color_violet():

Color Wheat

Generates a new Color associated to the color Wheat.

Return Type

Color

A new Color set to Wheat.

Signatures
#define COLOR_WHEAT
color color_wheat()
public static Color Color.Wheat { get }
public static Color SplashKit.ColorWheat();
function ColorWheat(): Color
def color_wheat():

Color White

Generates a new Color associated to the color White.

Return Type

Color

A new Color set to White.

Signatures
#define COLOR_WHITE
color color_white()
public static Color Color.White { get }
public static Color SplashKit.ColorWhite();
function ColorWhite(): Color
def color_white():

Color White Smoke

Generates a new Color associated to the color White Smoke.

Return Type

Color

A new Color set to White Smoke.

Signatures
#define COLOR_WHITE_SMOKE
color color_white_smoke()
public static Color Color.WhiteSmoke { get }
public static Color SplashKit.ColorWhiteSmoke();
function ColorWhiteSmoke(): Color
def color_white_smoke():

Color Yellow

Generates a new Color associated to the color Yellow.

Return Type

Color

A new Color set to Yellow.

Signatures
#define COLOR_YELLOW
color color_yellow()
public static Color Color.Yellow { get }
public static Color SplashKit.ColorYellow();
function ColorYellow(): Color
def color_yellow():

Color Yellow Green

Generates a new Color associated to the color Yellow Green.

Return Type

Color

A new Color set to Yellow Green.

Signatures
#define COLOR_YELLOW_GREEN
color color_yellow_green()
public static Color Color.YellowGreen { get }
public static Color SplashKit.ColorYellowGreen();
function ColorYellowGreen(): Color
def color_yellow_green():

Green Of

Returns the green of the supplied color.

Return Type

Integer

The green component of the color

Parameters
Name Type Description
C

Color

The color

Signatures
int green_of(color c)
public static int SplashKit.GreenOf(Color c);
function GreenOf(c: Color): Integer
def green_of(c):

Hsb Color

Returs a color from a combination of hue, saturation, and brightness.

Return Type

Color

The color from its hue, saturation and brightness.

Parameters
Name Type Description
Hue

Double

The hue of the color

Saturation

Double

The saturation of that hue

Brightness

Double

The brightness of the color

Signatures
color hsb_color(double hue, double saturation, double brightness)
public static Color Color.HSBColor(double hue, double saturation, double brightness);
public static Color SplashKit.HSBColor(double hue, double saturation, double brightness);
function HSBColor(hue: Double; saturation: Double; brightness: Double): Color
def hsb_color(hue, saturation, brightness):

Hue Of

Returns the hue of the supplied color.

Return Type

Double

The hue component of the color

Parameters
Name Type Description
C

Color

The color

Signatures
double hue_of(color c)
public static double SplashKit.HueOf(Color c);
function HueOf(c: Color): Double
def hue_of(c):

Random Color

Creates and returns a random color where the color and its opacity are random.

Return Type

Color

A random color

Signatures
color random_color()
public static Color Color.RandomColor();
public static Color SplashKit.RandomColor();
function RandomColor(): Color
def random_color():

Random RGB Color

Creates and returns a random color where the color is random, but the opacity is set to the passed in value.

Return Type

Color

A random color with the set alpha

Parameters
Name Type Description
Alpha

Integer

The set alpha (opacity) value (between 0 and 255)

Signatures
color random_rgb_color(int alpha)
public static Color Color.RandomRGBColor(int alpha);
public static Color SplashKit.RandomRGBColor(int alpha);
function RandomRGBColor(alpha: Integer): Color
def random_rgb_color(alpha):

Red Of

Returns the red of the supplied color.

Return Type

Integer

The red component of the color

Parameters
Name Type Description
C

Color

The color

Signatures
int red_of(color c)
public static int SplashKit.RedOf(Color c);
function RedOf(c: Color): Integer
def red_of(c):

RGB Color

RGB Color

Gets a color given its RGB components. Each of the components has a value between 0 and 1.

Return Type

Color

The color from its different component

Parameters
Name Type Description
Red

Double

The red component

Green

Double

The green component

Blue

Double

The blue component

Signatures
color rgb_color(double red, double green, double blue)
public static Color Color.RGBColor(double red, double green, double blue);
public static Color SplashKit.RGBColor(double red, double green, double blue);
function RGBColor(red: Double; green: Double; blue: Double): Color
def rgb_color_from_double(red, green, blue):

RGB Color

Gets a color given its RGB components. Each of the components has a value between 0 and 255.

Return Type

Color

The color from its different component

Parameters
Name Type Description
Red

Integer

The red component

Green

Integer

The green component

Blue

Integer

The blue component

Signatures
color rgb_color(int red, int green, int blue)
public static Color Color.RGBColor(int red, int green, int blue);
public static Color SplashKit.RGBColor(int red, int green, int blue);
function RGBColor(red: Integer; green: Integer; blue: Integer): Color
def rgb_color(red, green, blue):

Rgba Color

Rgba Color

Gets a color given its color components. Each of the components has a value between 0 and 1.0.

Return Type

Color

The color from its different component

Parameters
Name Type Description
Red

Double

The red component (between 0 and 1.0)

Green

Double

The green component (between 0 and 1.0)

Blue

Double

The blue component (between 0 and 1.0)

Alpha

Double

The alpha (opacity) component (between 0 and 1.0)

Signatures
color rgba_color(double red, double green, double blue, double alpha)
public static Color Color.RGBAColor(double red, double green, double blue, double alpha);
public static Color SplashKit.RGBAColor(double red, double green, double blue, double alpha);
function RGBAColor(red: Double; green: Double; blue: Double; alpha: Double): Color
def rgba_color_from_double(red, green, blue, alpha):

Rgba Color

Gets a color given its color components. Each of the components has a value between 0 and 255.

Return Type

Color

The color from its different component

Parameters
Name Type Description
Red

Integer

The red component (between 0 and 255)

Green

Integer

The green component (between 0 and 255)

Blue

Integer

The blue component (between 0 and 255)

Alpha

Integer

The alpha (opacity) component (between 0 and 255)

Signatures
color rgba_color(int red, int green, int blue, int alpha)
public static Color Color.RGBAColor(int red, int green, int blue, int alpha);
public static Color SplashKit.RGBAColor(int red, int green, int blue, int alpha);
function RGBAColor(red: Integer; green: Integer; blue: Integer; alpha: Integer): Color
def rgba_color(red, green, blue, alpha):

Saturation Of

Returns the saturation of the supplied color.

Return Type

Double

The saturation component of the color

Parameters
Name Type Description
C

Color

The color

Signatures
double saturation_of(color c)
public static double SplashKit.SaturationOf(Color c);
function SaturationOf(c: Color): Double
def saturation_of(c):

String To Color

Returns a color for the passed in color string. The format must be #, followed by the hex values for the red, green, blue, and alpha components of the color.

Return Type

Color

The color represented in the string

Parameters
Name Type Description
Str

String

The hex string representing the color

Signatures
color string_to_color(string str)
public static Color SplashKit.StringToColor(string str);
function StringToColor(str: String): Color
def string_to_color(str):