Color
Functions
Alpha Of
Returns the alpha of the supplied color.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: Integer
Signatures:
int alpha_of(color c)
public static int SplashKit.AlphaOf(Color c);
def alpha_of(c):
function AlphaOf(c: Color): Integer
Blue Of
Returns the blue of the supplied color.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: Integer
Signatures:
int blue_of(color c)
public static int SplashKit.BlueOf(Color c);
def blue_of(c):
function BlueOf(c: Color): Integer
Brightness Of
Returns the brightness of the supplied color.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: Double
Signatures:
double brightness_of(color c)
public static double SplashKit.BrightnessOf(Color c);
def brightness_of(c):
function BrightnessOf(c: Color): Double
Usage:
Color Alice Blue
Generates a new Color
associated to the color alice_blue
.
Return Type: Color
Signatures:
#define COLOR_ALICE_BLUEcolor color_alice_blue()
public static Color Color.AliceBlue { get }public static Color SplashKit.ColorAliceBlue();
def color_alice_blue():
function ColorAliceBlue(): Color
Color Antique White
Generates a new Color
associated to the color antique_white
.
Return Type: Color
Signatures:
#define COLOR_ANTIQUE_WHITEcolor color_antique_white()
public static Color Color.AntiqueWhite { get }public static Color SplashKit.ColorAntiqueWhite();
def color_antique_white():
function ColorAntiqueWhite(): Color
Color Aqua
Generates a new Color
associated to the color aqua
.
Return Type: Color
Signatures:
#define COLOR_AQUAcolor color_aqua()
public static Color Color.Aqua { get }public static Color SplashKit.ColorAqua();
def color_aqua():
function ColorAqua(): Color
Color Aquamarine
Generates a new Color
associated to the color aquamarine
.
Return Type: Color
Signatures:
#define COLOR_AQUAMARINEcolor color_aquamarine()
public static Color Color.Aquamarine { get }public static Color SplashKit.ColorAquamarine();
def color_aquamarine():
function ColorAquamarine(): Color
Color Azure
Generates a new Color
associated to the color azure
.
Return Type: Color
Signatures:
#define COLOR_AZUREcolor color_azure()
public static Color Color.Azure { get }public static Color SplashKit.ColorAzure();
def color_azure():
function ColorAzure(): Color
Color Beige
Generates a new Color
associated to the color beige
.
Return Type: Color
Signatures:
#define COLOR_BEIGEcolor color_beige()
public static Color Color.Beige { get }public static Color SplashKit.ColorBeige();
def color_beige():
function ColorBeige(): Color
Color Bisque
Generates a new Color
associated to the color bisque
.
Return Type: Color
Signatures:
#define COLOR_BISQUEcolor color_bisque()
public static Color Color.Bisque { get }public static Color SplashKit.ColorBisque();
def color_bisque():
function ColorBisque(): Color
Color Black
Generates a new Color
associated to the color black
.
Return Type: Color
Signatures:
#define COLOR_BLACKcolor color_black()
public static Color Color.Black { get }public static Color SplashKit.ColorBlack();
def color_black():
function ColorBlack(): Color
Color Blanched Almond
Generates a new Color
associated to the color blanched_almond
.
Return Type: Color
Signatures:
#define COLOR_BLANCHED_ALMONDcolor color_blanched_almond()
public static Color Color.BlanchedAlmond { get }public static Color SplashKit.ColorBlanchedAlmond();
def color_blanched_almond():
function ColorBlanchedAlmond(): Color
Color Blue
Generates a new Color
associated to the color blue
.
Return Type: Color
Signatures:
#define COLOR_BLUEcolor color_blue()
public static Color Color.Blue { get }public static Color SplashKit.ColorBlue();
def color_blue():
function ColorBlue(): Color
Color Blue Violet
Generates a new Color
associated to the color blue_violet
.
Return Type: Color
Signatures:
#define COLOR_BLUE_VIOLETcolor color_blue_violet()
public static Color Color.BlueViolet { get }public static Color SplashKit.ColorBlueViolet();
def color_blue_violet():
function ColorBlueViolet(): Color
Color Bright Green
Generates a new Color
associated to the color bright_green
.
Return Type: Color
Signatures:
#define COLOR_BRIGHT_GREENcolor color_bright_green()
public static Color Color.BrightGreen { get }public static Color SplashKit.ColorBrightGreen();
def color_bright_green():
function ColorBrightGreen(): Color
Color Brown
Generates a new Color
associated to the color brown
.
Return Type: Color
Signatures:
#define COLOR_BROWNcolor color_brown()
public static Color Color.Brown { get }public static Color SplashKit.ColorBrown();
def color_brown():
function ColorBrown(): Color
Color Burly Wood
Generates a new Color
associated to the color burly_wood
.
Return Type: Color
Signatures:
#define COLOR_BURLY_WOODcolor color_burly_wood()
public static Color Color.BurlyWood { get }public static Color SplashKit.ColorBurlyWood();
def color_burly_wood():
function ColorBurlyWood(): Color
Color Cadet Blue
Generates a new Color
associated to the color cadet_blue
.
Return Type: Color
Signatures:
#define COLOR_CADET_BLUEcolor color_cadet_blue()
public static Color Color.CadetBlue { get }public static Color SplashKit.ColorCadetBlue();
def color_cadet_blue():
function ColorCadetBlue(): Color
Color Chartreuse
Generates a new Color
associated to the color chartreuse
.
Return Type: Color
Signatures:
#define COLOR_CHARTREUSEcolor color_chartreuse()
public static Color Color.Chartreuse { get }public static Color SplashKit.ColorChartreuse();
def color_chartreuse():
function ColorChartreuse(): Color
Color Chocolate
Generates a new Color
associated to the color chocolate
.
Return Type: Color
Signatures:
#define COLOR_CHOCOLATEcolor color_chocolate()
public static Color Color.Chocolate { get }public static Color SplashKit.ColorChocolate();
def color_chocolate():
function ColorChocolate(): Color
Color Coral
Generates a new Color
associated to the color coral
.
Return Type: Color
Signatures:
#define COLOR_CORALcolor color_coral()
public static Color Color.Coral { get }public static Color SplashKit.ColorCoral();
def color_coral():
function ColorCoral(): Color
Color Cornflower Blue
Generates a new Color
associated to the color cornflower_blue
.
Return Type: Color
Signatures:
#define COLOR_CORNFLOWER_BLUEcolor color_cornflower_blue()
public static Color Color.CornflowerBlue { get }public static Color SplashKit.ColorCornflowerBlue();
def color_cornflower_blue():
function ColorCornflowerBlue(): Color
Color Cornsilk
Generates a new Color
associated to the color cornsilk
.
Return Type: Color
Signatures:
#define COLOR_CORNSILKcolor color_cornsilk()
public static Color Color.Cornsilk { get }public static Color SplashKit.ColorCornsilk();
def color_cornsilk():
function ColorCornsilk(): Color
Color Crimson
Generates a new Color
associated to the color crimson
.
Return Type: Color
Signatures:
#define COLOR_CRIMSONcolor color_crimson()
public static Color Color.Crimson { get }public static Color SplashKit.ColorCrimson();
def color_crimson():
function ColorCrimson(): Color
Color Cyan
Generates a new Color
associated to the color cyan
.
Return Type: Color
Signatures:
#define COLOR_CYANcolor color_cyan()
public static Color Color.Cyan { get }public static Color SplashKit.ColorCyan();
def color_cyan():
function ColorCyan(): Color
Color Dark Blue
Generates a new Color
associated to the color dark_blue
.
Return Type: Color
Signatures:
#define COLOR_DARK_BLUEcolor color_dark_blue()
public static Color Color.DarkBlue { get }public static Color SplashKit.ColorDarkBlue();
def color_dark_blue():
function ColorDarkBlue(): Color
Color Dark Cyan
Generates a new Color
associated to the color dark_cyan
.
Return Type: Color
Signatures:
#define COLOR_DARK_CYANcolor color_dark_cyan()
public static Color Color.DarkCyan { get }public static Color SplashKit.ColorDarkCyan();
def color_dark_cyan():
function ColorDarkCyan(): Color
Color Dark Goldenrod
Generates a new Color
associated to the color dark_goldenrod
.
Return Type: Color
Signatures:
#define COLOR_DARK_GOLDENRODcolor color_dark_goldenrod()
public static Color Color.DarkGoldenrod { get }public static Color SplashKit.ColorDarkGoldenrod();
def color_dark_goldenrod():
function ColorDarkGoldenrod(): Color
Color Dark Gray
Generates a new Color
associated to the color dark_gray
.
Return Type: Color
Signatures:
#define COLOR_DARK_GRAYcolor color_dark_gray()
public static Color Color.DarkGray { get }public static Color SplashKit.ColorDarkGray();
def color_dark_gray():
function ColorDarkGray(): Color
Color Dark Green
Generates a new Color
associated to the color dark_green
.
Return Type: Color
Signatures:
#define COLOR_DARK_GREENcolor color_dark_green()
public static Color Color.DarkGreen { get }public static Color SplashKit.ColorDarkGreen();
def color_dark_green():
function ColorDarkGreen(): Color
Color Dark Khaki
Generates a new Color
associated to the color dark_khaki
.
Return Type: Color
Signatures:
#define COLOR_DARK_KHAKIcolor color_dark_khaki()
public static Color Color.DarkKhaki { get }public static Color SplashKit.ColorDarkKhaki();
def color_dark_khaki():
function ColorDarkKhaki(): Color
Color Dark Magenta
Generates a new Color
associated to the color dark_magenta
.
Return Type: Color
Signatures:
#define COLOR_DARK_MAGENTAcolor color_dark_magenta()
public static Color Color.DarkMagenta { get }public static Color SplashKit.ColorDarkMagenta();
def color_dark_magenta():
function ColorDarkMagenta(): Color
Color Dark Olive Green
Generates a new Color
associated to the color dark_olive_green
.
Return Type: Color
Signatures:
#define COLOR_DARK_OLIVE_GREENcolor color_dark_olive_green()
public static Color Color.DarkOliveGreen { get }public static Color SplashKit.ColorDarkOliveGreen();
def color_dark_olive_green():
function ColorDarkOliveGreen(): Color
Color Dark Orange
Generates a new Color
associated to the color dark_orange
.
Return Type: Color
Signatures:
#define COLOR_DARK_ORANGEcolor color_dark_orange()
public static Color Color.DarkOrange { get }public static Color SplashKit.ColorDarkOrange();
def color_dark_orange():
function ColorDarkOrange(): Color
Color Dark Orchid
Generates a new Color
associated to the color dark_orchid
.
Return Type: Color
Signatures:
#define COLOR_DARK_ORCHIDcolor color_dark_orchid()
public static Color Color.DarkOrchid { get }public static Color SplashKit.ColorDarkOrchid();
def color_dark_orchid():
function ColorDarkOrchid(): Color
Color Dark Red
Generates a new Color
associated to the color dark_red
.
Return Type: Color
Signatures:
#define COLOR_DARK_REDcolor color_dark_red()
public static Color Color.DarkRed { get }public static Color SplashKit.ColorDarkRed();
def color_dark_red():
function ColorDarkRed(): Color
Color Dark Salmon
Generates a new Color
associated to the color dark_salmon
.
Return Type: Color
Signatures:
#define COLOR_DARK_SALMONcolor color_dark_salmon()
public static Color Color.DarkSalmon { get }public static Color SplashKit.ColorDarkSalmon();
def color_dark_salmon():
function ColorDarkSalmon(): Color
Color Dark Sea Green
Generates a new Color
associated to the color dark_sea_green
.
Return Type: Color
Signatures:
#define COLOR_DARK_SEA_GREENcolor color_dark_sea_green()
public static Color Color.DarkSeaGreen { get }public static Color SplashKit.ColorDarkSeaGreen();
def color_dark_sea_green():
function ColorDarkSeaGreen(): Color
Color Dark Slate Blue
Generates a new Color
associated to the color dark_slate_blue
.
Return Type: Color
Signatures:
#define COLOR_DARK_SLATE_BLUEcolor color_dark_slate_blue()
public static Color Color.DarkSlateBlue { get }public static Color SplashKit.ColorDarkSlateBlue();
def color_dark_slate_blue():
function ColorDarkSlateBlue(): Color
Color Dark Slate Gray
Generates a new Color
associated to the color dark_slate_gray
.
Return Type: Color
Signatures:
#define COLOR_DARK_SLATE_GRAYcolor color_dark_slate_gray()
public static Color Color.DarkSlateGray { get }public static Color SplashKit.ColorDarkSlateGray();
def color_dark_slate_gray():
function ColorDarkSlateGray(): Color
Color Dark Turquoise
Generates a new Color
associated to the color dark_turquoise
.
Return Type: Color
Signatures:
#define COLOR_DARK_TURQUOISEcolor color_dark_turquoise()
public static Color Color.DarkTurquoise { get }public static Color SplashKit.ColorDarkTurquoise();
def color_dark_turquoise():
function ColorDarkTurquoise(): Color
Color Dark Violet
Generates a new Color
associated to the color dark_violet
.
Return Type: Color
Signatures:
#define COLOR_DARK_VIOLETcolor color_dark_violet()
public static Color Color.DarkViolet { get }public static Color SplashKit.ColorDarkViolet();
def color_dark_violet():
function ColorDarkViolet(): Color
Color Deep Pink
Generates a new Color
associated to the color deep_pink
.
Return Type: Color
Signatures:
#define COLOR_DEEP_PINKcolor color_deep_pink()
public static Color Color.DeepPink { get }public static Color SplashKit.ColorDeepPink();
def color_deep_pink():
function ColorDeepPink(): Color
Color Deep Sky Blue
Generates a new Color
associated to the color deep_sky_blue
.
Return Type: Color
Signatures:
#define COLOR_DEEP_SKY_BLUEcolor color_deep_sky_blue()
public static Color Color.DeepSkyBlue { get }public static Color SplashKit.ColorDeepSkyBlue();
def color_deep_sky_blue():
function ColorDeepSkyBlue(): Color
Color Dim Gray
Generates a new Color
associated to the color dim_gray
.
Return Type: Color
Signatures:
#define COLOR_DIM_GRAYcolor color_dim_gray()
public static Color Color.DimGray { get }public static Color SplashKit.ColorDimGray();
def color_dim_gray():
function ColorDimGray(): Color
Color Dodger Blue
Generates a new Color
associated to the color dodger_blue
.
Return Type: Color
Signatures:
#define COLOR_DODGER_BLUEcolor color_dodger_blue()
public static Color Color.DodgerBlue { get }public static Color SplashKit.ColorDodgerBlue();
def color_dodger_blue():
function ColorDodgerBlue(): Color
Color Firebrick
Generates a new Color
associated to the color firebrick
.
Return Type: Color
Signatures:
#define COLOR_FIREBRICKcolor color_firebrick()
public static Color Color.Firebrick { get }public static Color SplashKit.ColorFirebrick();
def color_firebrick():
function ColorFirebrick(): Color
Color Floral White
Generates a new Color
associated to the color floral_white
.
Return Type: Color
Signatures:
#define COLOR_FLORAL_WHITEcolor color_floral_white()
public static Color Color.FloralWhite { get }public static Color SplashKit.ColorFloralWhite();
def color_floral_white():
function ColorFloralWhite(): Color
Color Forest Green
Generates a new Color
associated to the color forest_green
.
Return Type: Color
Signatures:
#define COLOR_FOREST_GREENcolor color_forest_green()
public static Color Color.ForestGreen { get }public static Color SplashKit.ColorForestGreen();
def color_forest_green():
function ColorForestGreen(): Color
Color Fuchsia
Generates a new Color
associated to the color fuchsia
.
Return Type: Color
Signatures:
#define COLOR_FUCHSIAcolor color_fuchsia()
public static Color Color.Fuchsia { get }public static Color SplashKit.ColorFuchsia();
def color_fuchsia():
function ColorFuchsia(): Color
Color Gainsboro
Generates a new Color
associated to the color gainsboro
.
Return Type: Color
Signatures:
#define COLOR_GAINSBOROcolor color_gainsboro()
public static Color Color.Gainsboro { get }public static Color SplashKit.ColorGainsboro();
def color_gainsboro():
function ColorGainsboro(): Color
Color Ghost White
Generates a new Color
associated to the color ghost_white
.
Return Type: Color
Signatures:
#define COLOR_GHOST_WHITEcolor color_ghost_white()
public static Color Color.GhostWhite { get }public static Color SplashKit.ColorGhostWhite();
def color_ghost_white():
function ColorGhostWhite(): Color
Color Gold
Generates a new Color
associated to the color gold
.
Return Type: Color
Signatures:
#define COLOR_GOLDcolor color_gold()
public static Color Color.Gold { get }public static Color SplashKit.ColorGold();
def color_gold():
function ColorGold(): Color
Color Goldenrod
Generates a new Color
associated to the color goldenrod
.
Return Type: Color
Signatures:
#define COLOR_GOLDENRODcolor color_goldenrod()
public static Color Color.Goldenrod { get }public static Color SplashKit.ColorGoldenrod();
def color_goldenrod():
function ColorGoldenrod(): Color
Color Gray
Generates a new Color
associated to the color gray
.
Return Type: Color
Signatures:
#define COLOR_GRAYcolor color_gray()
public static Color Color.Gray { get }public static Color SplashKit.ColorGray();
def color_gray():
function ColorGray(): Color
Color Green
Generates a new Color
associated to the color green
.
Return Type: Color
Signatures:
#define COLOR_GREENcolor color_green()
public static Color Color.Green { get }public static Color SplashKit.ColorGreen();
def color_green():
function ColorGreen(): Color
Color Green Yellow
Generates a new Color
associated to the color green_yellow
.
Return Type: Color
Signatures:
#define COLOR_GREEN_YELLOWcolor color_green_yellow()
public static Color Color.GreenYellow { get }public static Color SplashKit.ColorGreenYellow();
def color_green_yellow():
function ColorGreenYellow(): Color
Color Honeydew
Generates a new Color
associated to the color honeydew
.
Return Type: Color
Signatures:
#define COLOR_HONEYDEWcolor color_honeydew()
public static Color Color.Honeydew { get }public static Color SplashKit.ColorHoneydew();
def color_honeydew():
function ColorHoneydew(): Color
Color Hot Pink
Generates a new Color
associated to the color hot_pink
.
Return Type: Color
Signatures:
#define COLOR_HOT_PINKcolor color_hot_pink()
public static Color Color.HotPink { get }public static Color SplashKit.ColorHotPink();
def color_hot_pink():
function ColorHotPink(): Color
Color Indian Red
Generates a new Color
associated to the color indian_red
.
Return Type: Color
Signatures:
#define COLOR_INDIAN_REDcolor color_indian_red()
public static Color Color.IndianRed { get }public static Color SplashKit.ColorIndianRed();
def color_indian_red():
function ColorIndianRed(): Color
Color Indigo
Generates a new Color
associated to the color indigo
.
Return Type: Color
Signatures:
#define COLOR_INDIGOcolor color_indigo()
public static Color Color.Indigo { get }public static Color SplashKit.ColorIndigo();
def color_indigo():
function ColorIndigo(): Color
Color Ivory
Generates a new Color
associated to the color ivory
.
Return Type: Color
Signatures:
#define COLOR_IVORYcolor color_ivory()
public static Color Color.Ivory { get }public static Color SplashKit.ColorIvory();
def color_ivory():
function ColorIvory(): Color
Color Khaki
Generates a new Color
associated to the color khaki
.
Return Type: Color
Signatures:
#define COLOR_KHAKIcolor color_khaki()
public static Color Color.Khaki { get }public static Color SplashKit.ColorKhaki();
def color_khaki():
function ColorKhaki(): Color
Color Lavender
Generates a new Color
associated to the color lavender
.
Return Type: Color
Signatures:
#define COLOR_LAVENDERcolor color_lavender()
public static Color Color.Lavender { get }public static Color SplashKit.ColorLavender();
def color_lavender():
function ColorLavender(): Color
Color Lavender Blush
Generates a new Color
associated to the color lavender_blush
.
Return Type: Color
Signatures:
#define COLOR_LAVENDER_BLUSHcolor color_lavender_blush()
public static Color Color.LavenderBlush { get }public static Color SplashKit.ColorLavenderBlush();
def color_lavender_blush():
function ColorLavenderBlush(): Color
Color Lawn Green
Generates a new Color
associated to the color lawn_green
.
Return Type: Color
Signatures:
#define COLOR_LAWN_GREENcolor color_lawn_green()
public static Color Color.LawnGreen { get }public static Color SplashKit.ColorLawnGreen();
def color_lawn_green():
function ColorLawnGreen(): Color
Color Lemon Chiffon
Generates a new Color
associated to the color lemon_chiffon
.
Return Type: Color
Signatures:
#define COLOR_LEMON_CHIFFONcolor color_lemon_chiffon()
public static Color Color.LemonChiffon { get }public static Color SplashKit.ColorLemonChiffon();
def color_lemon_chiffon():
function ColorLemonChiffon(): Color
Color Light Blue
Generates a new Color
associated to the color light_blue
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_BLUEcolor color_light_blue()
public static Color Color.LightBlue { get }public static Color SplashKit.ColorLightBlue();
def color_light_blue():
function ColorLightBlue(): Color
Color Light Coral
Generates a new Color
associated to the color light_coral
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_CORALcolor color_light_coral()
public static Color Color.LightCoral { get }public static Color SplashKit.ColorLightCoral();
def color_light_coral():
function ColorLightCoral(): Color
Color Light Cyan
Generates a new Color
associated to the color light_cyan
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_CYANcolor color_light_cyan()
public static Color Color.LightCyan { get }public static Color SplashKit.ColorLightCyan();
def color_light_cyan():
function ColorLightCyan(): Color
Color Light Goldenrod Yellow
Generates a new Color
associated to the color light_goldenrod_yellow
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_GOLDENROD_YELLOWcolor color_light_goldenrod_yellow()
public static Color Color.LightGoldenrodYellow { get }public static Color SplashKit.ColorLightGoldenrodYellow();
def color_light_goldenrod_yellow():
function ColorLightGoldenrodYellow(): Color
Color Light Gray
Generates a new Color
associated to the color light_gray
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_GRAYcolor color_light_gray()
public static Color Color.LightGray { get }public static Color SplashKit.ColorLightGray();
def color_light_gray():
function ColorLightGray(): Color
Color Light Green
Generates a new Color
associated to the color light_green
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_GREENcolor color_light_green()
public static Color Color.LightGreen { get }public static Color SplashKit.ColorLightGreen();
def color_light_green():
function ColorLightGreen(): Color
Color Light Pink
Generates a new Color
associated to the color light_pink
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_PINKcolor color_light_pink()
public static Color Color.LightPink { get }public static Color SplashKit.ColorLightPink();
def color_light_pink():
function ColorLightPink(): Color
Color Light Salmon
Generates a new Color
associated to the color light_salmon
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_SALMONcolor color_light_salmon()
public static Color Color.LightSalmon { get }public static Color SplashKit.ColorLightSalmon();
def color_light_salmon():
function ColorLightSalmon(): Color
Color Light Sea Green
Generates a new Color
associated to the color light_sea_green
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_SEA_GREENcolor color_light_sea_green()
public static Color Color.LightSeaGreen { get }public static Color SplashKit.ColorLightSeaGreen();
def color_light_sea_green():
function ColorLightSeaGreen(): Color
Color Light Sky Blue
Generates a new Color
associated to the color light_sky_blue
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_SKY_BLUEcolor color_light_sky_blue()
public static Color Color.LightSkyBlue { get }public static Color SplashKit.ColorLightSkyBlue();
def color_light_sky_blue():
function ColorLightSkyBlue(): Color
Color Light Slate Gray
Generates a new Color
associated to the color light_slate_gray
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_SLATE_GRAYcolor color_light_slate_gray()
public static Color Color.LightSlateGray { get }public static Color SplashKit.ColorLightSlateGray();
def color_light_slate_gray():
function ColorLightSlateGray(): Color
Color Light Steel Blue
Generates a new Color
associated to the color light_steel_blue
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_STEEL_BLUEcolor color_light_steel_blue()
public static Color Color.LightSteelBlue { get }public static Color SplashKit.ColorLightSteelBlue();
def color_light_steel_blue():
function ColorLightSteelBlue(): Color
Color Light Yellow
Generates a new Color
associated to the color light_yellow
.
Return Type: Color
Signatures:
#define COLOR_LIGHT_YELLOWcolor color_light_yellow()
public static Color Color.LightYellow { get }public static Color SplashKit.ColorLightYellow();
def color_light_yellow():
function ColorLightYellow(): Color
Color Lime
Generates a new Color
associated to the color lime
.
Return Type: Color
Signatures:
#define COLOR_LIMEcolor color_lime()
public static Color Color.Lime { get }public static Color SplashKit.ColorLime();
def color_lime():
function ColorLime(): Color
Color Lime Green
Generates a new Color
associated to the color lime_green
.
Return Type: Color
Signatures:
#define COLOR_LIME_GREENcolor color_lime_green()
public static Color Color.LimeGreen { get }public static Color SplashKit.ColorLimeGreen();
def color_lime_green():
function ColorLimeGreen(): Color
Color Linen
Generates a new Color
associated to the color linen
.
Return Type: Color
Signatures:
#define COLOR_LINENcolor color_linen()
public static Color Color.Linen { get }public static Color SplashKit.ColorLinen();
def color_linen():
function ColorLinen(): Color
Color Magenta
Generates a new Color
associated to the color magenta
.
Return Type: Color
Signatures:
#define COLOR_MAGENTAcolor color_magenta()
public static Color Color.Magenta { get }public static Color SplashKit.ColorMagenta();
def color_magenta():
function ColorMagenta(): Color
Color Maroon
Generates a new Color
associated to the color maroon
.
Return Type: Color
Signatures:
#define COLOR_MAROONcolor color_maroon()
public static Color Color.Maroon { get }public static Color SplashKit.ColorMaroon();
def color_maroon():
function ColorMaroon(): Color
Color Medium Aquamarine
Generates a new Color
associated to the color medium_aquamarine
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_AQUAMARINEcolor color_medium_aquamarine()
public static Color Color.MediumAquamarine { get }public static Color SplashKit.ColorMediumAquamarine();
def color_medium_aquamarine():
function ColorMediumAquamarine(): Color
Color Medium Blue
Generates a new Color
associated to the color medium_blue
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_BLUEcolor color_medium_blue()
public static Color Color.MediumBlue { get }public static Color SplashKit.ColorMediumBlue();
def color_medium_blue():
function ColorMediumBlue(): Color
Color Medium Orchid
Generates a new Color
associated to the color medium_orchid
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_ORCHIDcolor color_medium_orchid()
public static Color Color.MediumOrchid { get }public static Color SplashKit.ColorMediumOrchid();
def color_medium_orchid():
function ColorMediumOrchid(): Color
Color Medium Purple
Generates a new Color
associated to the color medium_purple
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_PURPLEcolor color_medium_purple()
public static Color Color.MediumPurple { get }public static Color SplashKit.ColorMediumPurple();
def color_medium_purple():
function ColorMediumPurple(): Color
Color Medium Sea Green
Generates a new Color
associated to the color medium_sea_green
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_SEA_GREENcolor color_medium_sea_green()
public static Color Color.MediumSeaGreen { get }public static Color SplashKit.ColorMediumSeaGreen();
def color_medium_sea_green():
function ColorMediumSeaGreen(): Color
Color Medium Slate Blue
Generates a new Color
associated to the color medium_slate_blue
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_SLATE_BLUEcolor color_medium_slate_blue()
public static Color Color.MediumSlateBlue { get }public static Color SplashKit.ColorMediumSlateBlue();
def color_medium_slate_blue():
function ColorMediumSlateBlue(): Color
Color Medium Spring Green
Generates a new Color
associated to the color medium_spring_green
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_SPRING_GREENcolor color_medium_spring_green()
public static Color Color.MediumSpringGreen { get }public static Color SplashKit.ColorMediumSpringGreen();
def color_medium_spring_green():
function ColorMediumSpringGreen(): Color
Color Medium Turquoise
Generates a new Color
associated to the color medium_turquoise
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_TURQUOISEcolor color_medium_turquoise()
public static Color Color.MediumTurquoise { get }public static Color SplashKit.ColorMediumTurquoise();
def color_medium_turquoise():
function ColorMediumTurquoise(): Color
Color Medium Violet Red
Generates a new Color
associated to the color medium_violet_red
.
Return Type: Color
Signatures:
#define COLOR_MEDIUM_VIOLET_REDcolor color_medium_violet_red()
public static Color Color.MediumVioletRed { get }public static Color SplashKit.ColorMediumVioletRed();
def color_medium_violet_red():
function ColorMediumVioletRed(): Color
Color Midnight Blue
Generates a new Color
associated to the color midnight_blue
.
Return Type: Color
Signatures:
#define COLOR_MIDNIGHT_BLUEcolor color_midnight_blue()
public static Color Color.MidnightBlue { get }public static Color SplashKit.ColorMidnightBlue();
def color_midnight_blue():
function ColorMidnightBlue(): Color
Color Mint Cream
Generates a new Color
associated to the color mint_cream
.
Return Type: Color
Signatures:
#define COLOR_MINT_CREAMcolor color_mint_cream()
public static Color Color.MintCream { get }public static Color SplashKit.ColorMintCream();
def color_mint_cream():
function ColorMintCream(): Color
Color Misty Rose
Generates a new Color
associated to the color misty_rose
.
Return Type: Color
Signatures:
#define COLOR_MISTY_ROSEcolor color_misty_rose()
public static Color Color.MistyRose { get }public static Color SplashKit.ColorMistyRose();
def color_misty_rose():
function ColorMistyRose(): Color
Color Moccasin
Generates a new Color
associated to the color moccasin
.
Return Type: Color
Signatures:
#define COLOR_MOCCASINcolor color_moccasin()
public static Color Color.Moccasin { get }public static Color SplashKit.ColorMoccasin();
def color_moccasin():
function ColorMoccasin(): Color
Color Navajo White
Generates a new Color
associated to the color navajo_white
.
Return Type: Color
Signatures:
#define COLOR_NAVAJO_WHITEcolor color_navajo_white()
public static Color Color.NavajoWhite { get }public static Color SplashKit.ColorNavajoWhite();
def color_navajo_white():
function ColorNavajoWhite(): Color
Color Navy
Generates a new Color
associated to the color navy
.
Return Type: Color
Signatures:
#define COLOR_NAVYcolor color_navy()
public static Color Color.Navy { get }public static Color SplashKit.ColorNavy();
def color_navy():
function ColorNavy(): Color
Color Old Lace
Generates a new Color
associated to the color old_lace
.
Return Type: Color
Signatures:
#define COLOR_OLD_LACEcolor color_old_lace()
public static Color Color.OldLace { get }public static Color SplashKit.ColorOldLace();
def color_old_lace():
function ColorOldLace(): Color
Color Olive
Generates a new Color
associated to the color olive
.
Return Type: Color
Signatures:
#define COLOR_OLIVEcolor color_olive()
public static Color Color.Olive { get }public static Color SplashKit.ColorOlive();
def color_olive():
function ColorOlive(): Color
Color Olive Drab
Generates a new Color
associated to the color olive_drab
.
Return Type: Color
Signatures:
#define COLOR_OLIVE_DRABcolor color_olive_drab()
public static Color Color.OliveDrab { get }public static Color SplashKit.ColorOliveDrab();
def color_olive_drab():
function ColorOliveDrab(): Color
Color Orange
Generates a new Color
associated to the color orange
.
Return Type: Color
Signatures:
#define COLOR_ORANGEcolor color_orange()
public static Color Color.Orange { get }public static Color SplashKit.ColorOrange();
def color_orange():
function ColorOrange(): Color
Color Orange Red
Generates a new Color
associated to the color orange_red
.
Return Type: Color
Signatures:
#define COLOR_ORANGE_REDcolor color_orange_red()
public static Color Color.OrangeRed { get }public static Color SplashKit.ColorOrangeRed();
def color_orange_red():
function ColorOrangeRed(): Color
Color Orchid
Generates a new Color
associated to the color orchid
.
Return Type: Color
Signatures:
#define COLOR_ORCHIDcolor color_orchid()
public static Color Color.Orchid { get }public static Color SplashKit.ColorOrchid();
def color_orchid():
function ColorOrchid(): Color
Color Pale Goldenrod
Generates a new Color
associated to the color pale_goldenrod
.
Return Type: Color
Signatures:
#define COLOR_PALE_GOLDENRODcolor color_pale_goldenrod()
public static Color Color.PaleGoldenrod { get }public static Color SplashKit.ColorPaleGoldenrod();
def color_pale_goldenrod():
function ColorPaleGoldenrod(): Color
Color Pale Green
Generates a new Color
associated to the color pale_green
.
Return Type: Color
Signatures:
#define COLOR_PALE_GREENcolor color_pale_green()
public static Color Color.PaleGreen { get }public static Color SplashKit.ColorPaleGreen();
def color_pale_green():
function ColorPaleGreen(): Color
Color Pale Turquoise
Generates a new Color
associated to the color pale_turquoise
.
Return Type: Color
Signatures:
#define COLOR_PALE_TURQUOISEcolor color_pale_turquoise()
public static Color Color.PaleTurquoise { get }public static Color SplashKit.ColorPaleTurquoise();
def color_pale_turquoise():
function ColorPaleTurquoise(): Color
Color Pale Violet Red
Generates a new Color
associated to the color pale_violet_red
.
Return Type: Color
Signatures:
#define COLOR_PALE_VIOLET_REDcolor color_pale_violet_red()
public static Color Color.PaleVioletRed { get }public static Color SplashKit.ColorPaleVioletRed();
def color_pale_violet_red():
function ColorPaleVioletRed(): Color
Color Papaya Whip
Generates a new Color
associated to the color papaya_whip
.
Return Type: Color
Signatures:
#define COLOR_PAPAYA_WHIPcolor color_papaya_whip()
public static Color Color.PapayaWhip { get }public static Color SplashKit.ColorPapayaWhip();
def color_papaya_whip():
function ColorPapayaWhip(): Color
Color Peach Puff
Generates a new Color
associated to the color peach_puff
.
Return Type: Color
Signatures:
#define COLOR_PEACH_PUFFcolor color_peach_puff()
public static Color Color.PeachPuff { get }public static Color SplashKit.ColorPeachPuff();
def color_peach_puff():
function ColorPeachPuff(): Color
Color Peru
Generates a new Color
associated to the color peru
.
Return Type: Color
Signatures:
#define COLOR_PERUcolor color_peru()
public static Color Color.Peru { get }public static Color SplashKit.ColorPeru();
def color_peru():
function ColorPeru(): Color
Color Pink
Generates a new Color
associated to the color pink
.
Return Type: Color
Signatures:
#define COLOR_PINKcolor color_pink()
public static Color Color.Pink { get }public static Color SplashKit.ColorPink();
def color_pink():
function ColorPink(): Color
Color Plum
Generates a new Color
associated to the color plum
.
Return Type: Color
Signatures:
#define COLOR_PLUMcolor color_plum()
public static Color Color.Plum { get }public static Color SplashKit.ColorPlum();
def color_plum():
function ColorPlum(): Color
Color Powder Blue
Generates a new Color
associated to the color powder_blue
.
Return Type: Color
Signatures:
#define COLOR_POWDER_BLUEcolor color_powder_blue()
public static Color Color.PowderBlue { get }public static Color SplashKit.ColorPowderBlue();
def color_powder_blue():
function ColorPowderBlue(): Color
Color Purple
Generates a new Color
associated to the color purple
.
Return Type: Color
Signatures:
#define COLOR_PURPLEcolor color_purple()
public static Color Color.Purple { get }public static Color SplashKit.ColorPurple();
def color_purple():
function ColorPurple(): Color
Color Red
Generates a new Color
associated to the color red
.
Return Type: Color
Signatures:
#define COLOR_REDcolor color_red()
public static Color Color.Red { get }public static Color SplashKit.ColorRed();
def color_red():
function ColorRed(): Color
Usage:
Color Rosy Brown
Generates a new Color
associated to the color rosy_brown
.
Return Type: Color
Signatures:
#define COLOR_ROSY_BROWNcolor color_rosy_brown()
public static Color Color.RosyBrown { get }public static Color SplashKit.ColorRosyBrown();
def color_rosy_brown():
function ColorRosyBrown(): Color
Color Royal Blue
Generates a new Color
associated to the color royal_blue
.
Return Type: Color
Signatures:
#define COLOR_ROYAL_BLUEcolor color_royal_blue()
public static Color Color.RoyalBlue { get }public static Color SplashKit.ColorRoyalBlue();
def color_royal_blue():
function ColorRoyalBlue(): Color
Color Saddle Brown
Generates a new Color
associated to the color saddle_brown
.
Return Type: Color
Signatures:
#define COLOR_SADDLE_BROWNcolor color_saddle_brown()
public static Color Color.SaddleBrown { get }public static Color SplashKit.ColorSaddleBrown();
def color_saddle_brown():
function ColorSaddleBrown(): Color
Color Salmon
Generates a new Color
associated to the color salmon
.
Return Type: Color
Signatures:
#define COLOR_SALMONcolor color_salmon()
public static Color Color.Salmon { get }public static Color SplashKit.ColorSalmon();
def color_salmon():
function ColorSalmon(): Color
Color Sandy Brown
Generates a new Color
associated to the color sandy_brown
.
Return Type: Color
Signatures:
#define COLOR_SANDY_BROWNcolor color_sandy_brown()
public static Color Color.SandyBrown { get }public static Color SplashKit.ColorSandyBrown();
def color_sandy_brown():
function ColorSandyBrown(): Color
Color Sea Green
Generates a new Color
associated to the color sea_green
.
Return Type: Color
Signatures:
#define COLOR_SEA_GREENcolor color_sea_green()
public static Color Color.SeaGreen { get }public static Color SplashKit.ColorSeaGreen();
def color_sea_green():
function ColorSeaGreen(): Color
Color Sea Shell
Generates a new Color
associated to the color sea_shell
.
Return Type: Color
Signatures:
#define COLOR_SEA_SHELLcolor color_sea_shell()
public static Color Color.SeaShell { get }public static Color SplashKit.ColorSeaShell();
def color_sea_shell():
function ColorSeaShell(): Color
Color Sienna
Generates a new Color
associated to the color sienna
.
Return Type: Color
Signatures:
#define COLOR_SIENNAcolor color_sienna()
public static Color Color.Sienna { get }public static Color SplashKit.ColorSienna();
def color_sienna():
function ColorSienna(): Color
Color Silver
Generates a new Color
associated to the color silver
.
Return Type: Color
Signatures:
#define COLOR_SILVERcolor color_silver()
public static Color Color.Silver { get }public static Color SplashKit.ColorSilver();
def color_silver():
function ColorSilver(): Color
Color Sky Blue
Generates a new Color
associated to the color sky_blue
.
Return Type: Color
Signatures:
#define COLOR_SKY_BLUEcolor color_sky_blue()
public static Color Color.SkyBlue { get }public static Color SplashKit.ColorSkyBlue();
def color_sky_blue():
function ColorSkyBlue(): Color
Color Slate Blue
Generates a new Color
associated to the color slate_blue
.
Return Type: Color
Signatures:
#define COLOR_SLATE_BLUEcolor color_slate_blue()
public static Color Color.SlateBlue { get }public static Color SplashKit.ColorSlateBlue();
def color_slate_blue():
function ColorSlateBlue(): Color
Color Slate Gray
Generates a new Color
associated to the color slate_gray
.
Return Type: Color
Signatures:
#define COLOR_SLATE_GRAYcolor color_slate_gray()
public static Color Color.SlateGray { get }public static Color SplashKit.ColorSlateGray();
def color_slate_gray():
function ColorSlateGray(): Color
Color Snow
Generates a new Color
associated to the color snow
.
Return Type: Color
Signatures:
#define COLOR_SNOWcolor color_snow()
public static Color Color.Snow { get }public static Color SplashKit.ColorSnow();
def color_snow():
function ColorSnow(): Color
Color Spring Green
Generates a new Color
associated to the color spring_green
.
Return Type: Color
Signatures:
#define COLOR_SPRING_GREENcolor color_spring_green()
public static Color Color.SpringGreen { get }public static Color SplashKit.ColorSpringGreen();
def color_spring_green():
function ColorSpringGreen(): Color
Color Steel Blue
Generates a new Color
associated to the color steel_blue
.
Return Type: Color
Signatures:
#define COLOR_STEEL_BLUEcolor color_steel_blue()
public static Color Color.SteelBlue { get }public static Color SplashKit.ColorSteelBlue();
def color_steel_blue():
function ColorSteelBlue(): Color
Color Swinburne Red
Generates a new Color
associated to the color swinburne_red
.
Return Type: Color
Signatures:
#define COLOR_SWINBURNE_REDcolor color_swinburne_red()
public static Color Color.SwinburneRed { get }public static Color SplashKit.ColorSwinburneRed();
def color_swinburne_red():
function ColorSwinburneRed(): Color
Color Tan
Generates a new Color
associated to the color tan
.
Return Type: Color
Signatures:
#define COLOR_TANcolor color_tan()
public static Color Color.Tan { get }public static Color SplashKit.ColorTan();
def color_tan():
function ColorTan(): Color
Color Teal
Generates a new Color
associated to the color teal
.
Return Type: Color
Signatures:
#define COLOR_TEALcolor color_teal()
public static Color Color.Teal { get }public static Color SplashKit.ColorTeal();
def color_teal():
function ColorTeal(): Color
Color Thistle
Generates a new Color
associated to the color thistle
.
Return Type: Color
Signatures:
#define COLOR_THISTLEcolor color_thistle()
public static Color Color.Thistle { get }public static Color SplashKit.ColorThistle();
def color_thistle():
function ColorThistle(): Color
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.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: String
Signatures:
string color_to_string(color c)
public static string SplashKit.ColorToString(Color c);
def color_to_string(c):
function ColorToString(c: Color): String
Color Tomato
Generates a new Color
associated to the color tomato
.
Return Type: Color
Signatures:
#define COLOR_TOMATOcolor color_tomato()
public static Color Color.Tomato { get }public static Color SplashKit.ColorTomato();
def color_tomato():
function ColorTomato(): Color
Color Transparent
Generates a new Color
associated to the color transparent
.
Return Type: Color
Signatures:
#define COLOR_TRANSPARENTcolor color_transparent()
public static Color Color.Transparent { get }public static Color SplashKit.ColorTransparent();
def color_transparent():
function ColorTransparent(): Color
Color Turquoise
Generates a new Color
associated to the color turquoise
.
Return Type: Color
Signatures:
#define COLOR_TURQUOISEcolor color_turquoise()
public static Color Color.Turquoise { get }public static Color SplashKit.ColorTurquoise();
def color_turquoise():
function ColorTurquoise(): Color
Color Violet
Generates a new Color
associated to the color violet
.
Return Type: Color
Signatures:
#define COLOR_VIOLETcolor color_violet()
public static Color Color.Violet { get }public static Color SplashKit.ColorViolet();
def color_violet():
function ColorViolet(): Color
Color Wheat
Generates a new Color
associated to the color wheat
.
Return Type: Color
Signatures:
#define COLOR_WHEATcolor color_wheat()
public static Color Color.Wheat { get }public static Color SplashKit.ColorWheat();
def color_wheat():
function ColorWheat(): Color
Color White
Generates a new Color
associated to the color white
.
Return Type: Color
Signatures:
#define COLOR_WHITEcolor color_white()
public static Color Color.White { get }public static Color SplashKit.ColorWhite();
def color_white():
function ColorWhite(): Color
Usage:
Color White Smoke
Generates a new Color
associated to the color white_smoke
.
Return Type: Color
Signatures:
#define COLOR_WHITE_SMOKEcolor color_white_smoke()
public static Color Color.WhiteSmoke { get }public static Color SplashKit.ColorWhiteSmoke();
def color_white_smoke():
function ColorWhiteSmoke(): Color
Color Yellow
Generates a new Color
associated to the color yellow
.
Return Type: Color
Signatures:
#define COLOR_YELLOWcolor color_yellow()
public static Color Color.Yellow { get }public static Color SplashKit.ColorYellow();
def color_yellow():
function ColorYellow(): Color
Usage:
Color Yellow Green
Generates a new Color
associated to the color yellow_green
.
Return Type: Color
Signatures:
#define COLOR_YELLOW_GREENcolor color_yellow_green()
public static Color Color.YellowGreen { get }public static Color SplashKit.ColorYellowGreen();
def color_yellow_green():
function ColorYellowGreen(): Color
Green Of
Returns the green of the supplied color.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: Integer
Signatures:
int green_of(color c)
public static int SplashKit.GreenOf(Color c);
def green_of(c):
function GreenOf(c: Color): Integer
Hsb Color
Returs a color from a combination of hue, saturation, and brightness.
Parameters:
Name | Type | Description |
---|---|---|
hue | Double | The hue of the color. Value must be between 0 and 1. |
saturation | Double | The saturation of that hue. Value must be between 0 and 1. |
brightness | Double | The brightness of the color. Value must be between 0 and 1. |
Return Type: 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);
def hsb_color(hue, saturation, brightness):
function HSBColor(hue: Double; saturation: Double; brightness: Double): Color
Usage:
Hue Of
Returns the hue of the supplied color.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: Double
Signatures:
double hue_of(color c)
public static double SplashKit.HueOf(Color c);
def hue_of(c):
function HueOf(c: Color): Double
Usage:
Random Color
Creates and returns a random color where the color and its opacity are random.
Return Type: Color
Signatures:
color random_color()
public static Color Color.Random();public static Color SplashKit.RandomColor();
def random_color():
function RandomColor(): 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.
Parameters:
Name | Type | Description |
---|---|---|
alpha | Integer | The set alpha (opacity) value (between 0 and 255) |
Return Type: Color
Signatures:
color random_rgb_color(int alpha)
public static Color Color.RandomRGB(int alpha);public static Color SplashKit.RandomRGBColor(int alpha);
def random_rgb_color(alpha):
function RandomRGBColor(alpha: Integer): Color
Red Of
Returns the red of the supplied color.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: Integer
Signatures:
int red_of(color c)
public static int SplashKit.RedOf(Color c);
def red_of(c):
function RedOf(c: Color): Integer
Rgb Color
Rgb Color
Gets a color given its RGB components. Each of the components has a value between 0 and 1.
Parameters:
Name | Type | Description |
---|---|---|
red | Double | The red component |
green | Double | The green component |
blue | Double | The blue component |
Return Type: Color
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);
def rgb_color_from_double(red, green, blue):
function RGBColor(red: Double; green: Double; blue: Double): Color
Rgb Color
Gets a color given its RGB components. Each of the components has a value between 0 and 255.
Parameters:
Name | Type | Description |
---|---|---|
red | Integer | The red component |
green | Integer | The green component |
blue | Integer | The blue component |
Return Type: Color
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);
def rgb_color(red, green, blue):
function RGBColor(red: Integer; green: Integer; blue: Integer): Color
Rgba Color
Rgba Color
Gets a color given its color components. Each of the components has a value between 0 and 1.0.
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) |
Return Type: Color
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);
def rgba_color_from_double(red, green, blue, alpha):
function RGBAColor(red: Double; green: Double; blue: Double; alpha: Double): Color
Rgba Color
Gets a color given its color components. Each of the components has a value between 0 and 255.
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) |
Return Type: Color
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);
def rgba_color(red, green, blue, alpha):
function RGBAColor(red: Integer; green: Integer; blue: Integer; alpha: Integer): Color
Saturation Of
Returns the saturation of the supplied color.
Parameters:
Name | Type | Description |
---|---|---|
c | Color | The color |
Return Type: Double
Signatures:
double saturation_of(color c)
public static double SplashKit.SaturationOf(Color c);
def saturation_of(c):
function SaturationOf(c: Color): Double
Usage:
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.
Parameters:
Name | Type | Description |
---|---|---|
str | String | The hex string representing the color |
Return Type: Color
Signatures:
color string_to_color(string str)
public static Color SplashKit.StringToColor(string str);
def string_to_color(str):
function StringToColor(str: String): Color