Color
Functions
Section titled “Functions”Returns the alpha of the supplied color.
Parameters:
| Name | Type | Description |
|---|---|---|
| c | Color | The color |
Return Type: Integer
Returns: The alpha component of the color
Signatures:
int alpha_of(color c)public static int SplashKit.AlphaOf(Color c);def alpha_of(c):function AlphaOf(c: Color): IntegerReturns the blue of the supplied color.
Parameters:
| Name | Type | Description |
|---|---|---|
| c | Color | The color |
Return Type: Integer
Returns: The blue component of the color
Signatures:
int blue_of(color c)public static int SplashKit.BlueOf(Color c);def blue_of(c):function BlueOf(c: Color): IntegerReturns the brightness of the supplied color.
Parameters:
| Name | Type | Description |
|---|---|---|
| c | Color | The color |
Return Type: Double
Returns: The brightness component of the color
Signatures:
double brightness_of(color c)public static double SplashKit.BrightnessOf(Color c);def brightness_of(c):function BrightnessOf(c: Color): DoubleUsage: {</>}
Generates a new Color associated to the color alice_blue.
Return Type: Color
Returns: A new Color set to alice_blue.
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(): ColorGenerates a new Color associated to the color antique_white.
Return Type: Color
Returns: A new Color set to antique_white.
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(): ColorGenerates a new Color associated to the color aqua.
Return Type: Color
Returns: A new Color set to aqua.
Signatures:
#define COLOR_AQUAcolor color_aqua()public static Color Color.Aqua { get }public static Color SplashKit.ColorAqua();def color_aqua():function ColorAqua(): ColorGenerates a new Color associated to the color aquamarine.
Return Type: Color
Returns: A new Color set to aquamarine.
Signatures:
#define COLOR_AQUAMARINEcolor color_aquamarine()public static Color Color.Aquamarine { get }public static Color SplashKit.ColorAquamarine();def color_aquamarine():function ColorAquamarine(): ColorGenerates a new Color associated to the color azure.
Return Type: Color
Returns: A new Color set to azure.
Signatures:
#define COLOR_AZUREcolor color_azure()public static Color Color.Azure { get }public static Color SplashKit.ColorAzure();def color_azure():function ColorAzure(): ColorGenerates a new Color associated to the color beige.
Return Type: Color
Returns: A new Color set to beige.
Signatures:
#define COLOR_BEIGEcolor color_beige()public static Color Color.Beige { get }public static Color SplashKit.ColorBeige();def color_beige():function ColorBeige(): ColorGenerates a new Color associated to the color bisque.
Return Type: Color
Returns: A new Color set to bisque.
Signatures:
#define COLOR_BISQUEcolor color_bisque()public static Color Color.Bisque { get }public static Color SplashKit.ColorBisque();def color_bisque():function ColorBisque(): ColorGenerates a new Color associated to the color black.
Return Type: Color
Returns: A new Color set to black.
Signatures:
#define COLOR_BLACKcolor color_black()public static Color Color.Black { get }public static Color SplashKit.ColorBlack();def color_black():function ColorBlack(): ColorGenerates a new Color associated to the color blanched_almond.
Return Type: Color
Returns: A new Color set to blanched_almond.
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(): ColorGenerates a new Color associated to the color blue.
Return Type: Color
Returns: A new Color set to blue.
Signatures:
#define COLOR_BLUEcolor color_blue()public static Color Color.Blue { get }public static Color SplashKit.ColorBlue();def color_blue():function ColorBlue(): ColorGenerates a new Color associated to the color blue_violet.
Return Type: Color
Returns: A new Color set to blue_violet.
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(): ColorGenerates a new Color associated to the color bright_green.
Return Type: Color
Returns: A new Color set to bright_green.
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(): ColorGenerates a new Color associated to the color brown.
Return Type: Color
Returns: A new Color set to brown.
Signatures:
#define COLOR_BROWNcolor color_brown()public static Color Color.Brown { get }public static Color SplashKit.ColorBrown();def color_brown():function ColorBrown(): ColorGenerates a new Color associated to the color burly_wood.
Return Type: Color
Returns: A new Color set to burly_wood.
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(): ColorGenerates a new Color associated to the color cadet_blue.
Return Type: Color
Returns: A new Color set to cadet_blue.
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(): ColorGenerates a new Color associated to the color chartreuse.
Return Type: Color
Returns: A new Color set to chartreuse.
Signatures:
#define COLOR_CHARTREUSEcolor color_chartreuse()public static Color Color.Chartreuse { get }public static Color SplashKit.ColorChartreuse();def color_chartreuse():function ColorChartreuse(): ColorGenerates a new Color associated to the color chocolate.
Return Type: Color
Returns: A new Color set to chocolate.
Signatures:
#define COLOR_CHOCOLATEcolor color_chocolate()public static Color Color.Chocolate { get }public static Color SplashKit.ColorChocolate();def color_chocolate():function ColorChocolate(): ColorGenerates a new Color associated to the color coral.
Return Type: Color
Returns: A new Color set to coral.
Signatures:
#define COLOR_CORALcolor color_coral()public static Color Color.Coral { get }public static Color SplashKit.ColorCoral();def color_coral():function ColorCoral(): ColorGenerates a new Color associated to the color cornflower_blue.
Return Type: Color
Returns: A new Color set to cornflower_blue.
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(): ColorGenerates a new Color associated to the color cornsilk.
Return Type: Color
Returns: A new Color set to cornsilk.
Signatures:
#define COLOR_CORNSILKcolor color_cornsilk()public static Color Color.Cornsilk { get }public static Color SplashKit.ColorCornsilk();def color_cornsilk():function ColorCornsilk(): ColorGenerates a new Color associated to the color crimson.
Return Type: Color
Returns: A new Color set to crimson.
Signatures:
#define COLOR_CRIMSONcolor color_crimson()public static Color Color.Crimson { get }public static Color SplashKit.ColorCrimson();def color_crimson():function ColorCrimson(): ColorGenerates a new Color associated to the color cyan.
Return Type: Color
Returns: A new Color set to cyan.
Signatures:
#define COLOR_CYANcolor color_cyan()public static Color Color.Cyan { get }public static Color SplashKit.ColorCyan();def color_cyan():function ColorCyan(): ColorGenerates a new Color associated to the color dark_blue.
Return Type: Color
Returns: A new Color set to dark_blue.
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(): ColorGenerates a new Color associated to the color dark_cyan.
Return Type: Color
Returns: A new Color set to dark_cyan.
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(): ColorGenerates a new Color associated to the color dark_goldenrod.
Return Type: Color
Returns: A new Color set to dark_goldenrod.
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(): ColorGenerates a new Color associated to the color dark_gray.
Return Type: Color
Returns: A new Color set to dark_gray.
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(): ColorGenerates a new Color associated to the color dark_green.
Return Type: Color
Returns: A new Color set to dark_green.
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(): ColorGenerates a new Color associated to the color dark_khaki.
Return Type: Color
Returns: A new Color set to dark_khaki.
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(): ColorGenerates a new Color associated to the color dark_magenta.
Return Type: Color
Returns: A new Color set to dark_magenta.
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(): ColorGenerates a new Color associated to the color dark_olive_green.
Return Type: Color
Returns: A new Color set to dark_olive_green.
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(): ColorGenerates a new Color associated to the color dark_orange.
Return Type: Color
Returns: A new Color set to dark_orange.
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(): ColorGenerates a new Color associated to the color dark_orchid.
Return Type: Color
Returns: A new Color set to dark_orchid.
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(): ColorGenerates a new Color associated to the color dark_red.
Return Type: Color
Returns: A new Color set to dark_red.
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(): ColorGenerates a new Color associated to the color dark_salmon.
Return Type: Color
Returns: A new Color set to dark_salmon.
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(): ColorGenerates a new Color associated to the color dark_sea_green.
Return Type: Color
Returns: A new Color set to dark_sea_green.
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(): ColorGenerates a new Color associated to the color dark_slate_blue.
Return Type: Color
Returns: A new Color set to dark_slate_blue.
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(): ColorGenerates a new Color associated to the color dark_slate_gray.
Return Type: Color
Returns: A new Color set to dark_slate_gray.
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(): ColorGenerates a new Color associated to the color dark_turquoise.
Return Type: Color
Returns: A new Color set to dark_turquoise.
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(): ColorGenerates a new Color associated to the color dark_violet.
Return Type: Color
Returns: A new Color set to dark_violet.
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(): ColorGenerates a new Color associated to the color deep_pink.
Return Type: Color
Returns: A new Color set to deep_pink.
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(): ColorGenerates a new Color associated to the color deep_sky_blue.
Return Type: Color
Returns: A new Color set to deep_sky_blue.
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(): ColorGenerates a new Color associated to the color dim_gray.
Return Type: Color
Returns: A new Color set to dim_gray.
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(): ColorGenerates a new Color associated to the color dodger_blue.
Return Type: Color
Returns: A new Color set to dodger_blue.
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(): ColorGenerates a new Color associated to the color firebrick.
Return Type: Color
Returns: A new Color set to firebrick.
Signatures:
#define COLOR_FIREBRICKcolor color_firebrick()public static Color Color.Firebrick { get }public static Color SplashKit.ColorFirebrick();def color_firebrick():function ColorFirebrick(): ColorGenerates a new Color associated to the color floral_white.
Return Type: Color
Returns: A new Color set to floral_white.
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(): ColorGenerates a new Color associated to the color forest_green.
Return Type: Color
Returns: A new Color set to forest_green.
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(): ColorGenerates a new Color associated to the color fuchsia.
Return Type: Color
Returns: A new Color set to fuchsia.
Signatures:
#define COLOR_FUCHSIAcolor color_fuchsia()public static Color Color.Fuchsia { get }public static Color SplashKit.ColorFuchsia();def color_fuchsia():function ColorFuchsia(): ColorGenerates a new Color associated to the color gainsboro.
Return Type: Color
Returns: A new Color set to gainsboro.
Signatures:
#define COLOR_GAINSBOROcolor color_gainsboro()public static Color Color.Gainsboro { get }public static Color SplashKit.ColorGainsboro();def color_gainsboro():function ColorGainsboro(): ColorGenerates a new Color associated to the color ghost_white.
Return Type: Color
Returns: A new Color set to ghost_white.
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(): ColorGenerates a new Color associated to the color gold.
Return Type: Color
Returns: A new Color set to gold.
Signatures:
#define COLOR_GOLDcolor color_gold()public static Color Color.Gold { get }public static Color SplashKit.ColorGold();def color_gold():function ColorGold(): ColorGenerates a new Color associated to the color goldenrod.
Return Type: Color
Returns: A new Color set to goldenrod.
Signatures:
#define COLOR_GOLDENRODcolor color_goldenrod()public static Color Color.Goldenrod { get }public static Color SplashKit.ColorGoldenrod();def color_goldenrod():function ColorGoldenrod(): ColorGenerates a new Color associated to the color gray.
Return Type: Color
Returns: A new Color set to gray.
Signatures:
#define COLOR_GRAYcolor color_gray()public static Color Color.Gray { get }public static Color SplashKit.ColorGray();def color_gray():function ColorGray(): ColorGenerates a new Color associated to the color green.
Return Type: Color
Returns: A new Color set to green.
Signatures:
#define COLOR_GREENcolor color_green()public static Color Color.Green { get }public static Color SplashKit.ColorGreen();def color_green():function ColorGreen(): ColorGenerates a new Color associated to the color green_yellow.
Return Type: Color
Returns: A new Color set to green_yellow.
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(): ColorGenerates a new Color associated to the color honeydew.
Return Type: Color
Returns: A new Color set to honeydew.
Signatures:
#define COLOR_HONEYDEWcolor color_honeydew()public static Color Color.Honeydew { get }public static Color SplashKit.ColorHoneydew();def color_honeydew():function ColorHoneydew(): ColorGenerates a new Color associated to the color hot_pink.
Return Type: Color
Returns: A new Color set to hot_pink.
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(): ColorGenerates a new Color associated to the color indian_red.
Return Type: Color
Returns: A new Color set to indian_red.
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(): ColorGenerates a new Color associated to the color indigo.
Return Type: Color
Returns: A new Color set to indigo.
Signatures:
#define COLOR_INDIGOcolor color_indigo()public static Color Color.Indigo { get }public static Color SplashKit.ColorIndigo();def color_indigo():function ColorIndigo(): ColorGenerates a new Color associated to the color ivory.
Return Type: Color
Returns: A new Color set to ivory.
Signatures:
#define COLOR_IVORYcolor color_ivory()public static Color Color.Ivory { get }public static Color SplashKit.ColorIvory();def color_ivory():function ColorIvory(): ColorGenerates a new Color associated to the color khaki.
Return Type: Color
Returns: A new Color set to khaki.
Signatures:
#define COLOR_KHAKIcolor color_khaki()public static Color Color.Khaki { get }public static Color SplashKit.ColorKhaki();def color_khaki():function ColorKhaki(): ColorGenerates a new Color associated to the color lavender.
Return Type: Color
Returns: A new Color set to lavender.
Signatures:
#define COLOR_LAVENDERcolor color_lavender()public static Color Color.Lavender { get }public static Color SplashKit.ColorLavender();def color_lavender():function ColorLavender(): ColorGenerates a new Color associated to the color lavender_blush.
Return Type: Color
Returns: A new Color set to lavender_blush.
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(): ColorGenerates a new Color associated to the color lawn_green.
Return Type: Color
Returns: A new Color set to lawn_green.
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(): ColorGenerates a new Color associated to the color lemon_chiffon.
Return Type: Color
Returns: A new Color set to lemon_chiffon.
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(): ColorGenerates a new Color associated to the color light_blue.
Return Type: Color
Returns: A new Color set to light_blue.
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(): ColorGenerates a new Color associated to the color light_coral.
Return Type: Color
Returns: A new Color set to light_coral.
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(): ColorGenerates a new Color associated to the color light_cyan.
Return Type: Color
Returns: A new Color set to light_cyan.
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(): ColorGenerates a new Color associated to the color light_goldenrod_yellow.
Return Type: Color
Returns: A new Color set to light_goldenrod_yellow.
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(): ColorGenerates a new Color associated to the color light_gray.
Return Type: Color
Returns: A new Color set to light_gray.
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(): ColorGenerates a new Color associated to the color light_green.
Return Type: Color
Returns: A new Color set to light_green.
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(): ColorGenerates a new Color associated to the color light_pink.
Return Type: Color
Returns: A new Color set to light_pink.
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(): ColorGenerates a new Color associated to the color light_salmon.
Return Type: Color
Returns: A new Color set to light_salmon.
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(): ColorGenerates a new Color associated to the color light_sea_green.
Return Type: Color
Returns: A new Color set to light_sea_green.
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(): ColorGenerates a new Color associated to the color light_sky_blue.
Return Type: Color
Returns: A new Color set to light_sky_blue.
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(): ColorGenerates a new Color associated to the color light_slate_gray.
Return Type: Color
Returns: A new Color set to light_slate_gray.
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(): ColorGenerates a new Color associated to the color light_steel_blue.
Return Type: Color
Returns: A new Color set to light_steel_blue.
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(): ColorGenerates a new Color associated to the color light_yellow.
Return Type: Color
Returns: A new Color set to light_yellow.
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(): ColorGenerates a new Color associated to the color lime.
Return Type: Color
Returns: A new Color set to lime.
Signatures:
#define COLOR_LIMEcolor color_lime()public static Color Color.Lime { get }public static Color SplashKit.ColorLime();def color_lime():function ColorLime(): ColorGenerates a new Color associated to the color lime_green.
Return Type: Color
Returns: A new Color set to lime_green.
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(): ColorGenerates a new Color associated to the color linen.
Return Type: Color
Returns: A new Color set to linen.
Signatures:
#define COLOR_LINENcolor color_linen()public static Color Color.Linen { get }public static Color SplashKit.ColorLinen();def color_linen():function ColorLinen(): ColorGenerates a new Color associated to the color magenta.
Return Type: Color
Returns: A new Color set to magenta.
Signatures:
#define COLOR_MAGENTAcolor color_magenta()public static Color Color.Magenta { get }public static Color SplashKit.ColorMagenta();def color_magenta():function ColorMagenta(): ColorGenerates a new Color associated to the color maroon.
Return Type: Color
Returns: A new Color set to maroon.
Signatures:
#define COLOR_MAROONcolor color_maroon()public static Color Color.Maroon { get }public static Color SplashKit.ColorMaroon();def color_maroon():function ColorMaroon(): ColorGenerates a new Color associated to the color medium_aquamarine.
Return Type: Color
Returns: A new Color set to medium_aquamarine.
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(): ColorGenerates a new Color associated to the color medium_blue.
Return Type: Color
Returns: A new Color set to medium_blue.
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(): ColorGenerates a new Color associated to the color medium_orchid.
Return Type: Color
Returns: A new Color set to medium_orchid.
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(): ColorGenerates a new Color associated to the color medium_purple.
Return Type: Color
Returns: A new Color set to medium_purple.
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(): ColorGenerates a new Color associated to the color medium_sea_green.
Return Type: Color
Returns: A new Color set to medium_sea_green.
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(): ColorGenerates a new Color associated to the color medium_slate_blue.
Return Type: Color
Returns: A new Color set to medium_slate_blue.
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(): ColorGenerates a new Color associated to the color medium_spring_green.
Return Type: Color
Returns: A new Color set to medium_spring_green.
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(): ColorGenerates a new Color associated to the color medium_turquoise.
Return Type: Color
Returns: A new Color set to medium_turquoise.
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(): ColorGenerates a new Color associated to the color medium_violet_red.
Return Type: Color
Returns: A new Color set to medium_violet_red.
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(): ColorGenerates a new Color associated to the color midnight_blue.
Return Type: Color
Returns: A new Color set to midnight_blue.
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(): ColorGenerates a new Color associated to the color mint_cream.
Return Type: Color
Returns: A new Color set to mint_cream.
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(): ColorGenerates a new Color associated to the color misty_rose.
Return Type: Color
Returns: A new Color set to misty_rose.
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(): ColorGenerates a new Color associated to the color moccasin.
Return Type: Color
Returns: A new Color set to moccasin.
Signatures:
#define COLOR_MOCCASINcolor color_moccasin()public static Color Color.Moccasin { get }public static Color SplashKit.ColorMoccasin();def color_moccasin():function ColorMoccasin(): ColorGenerates a new Color associated to the color navajo_white.
Return Type: Color
Returns: A new Color set to navajo_white.
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(): ColorGenerates a new Color associated to the color navy.
Return Type: Color
Returns: A new Color set to navy.
Signatures:
#define COLOR_NAVYcolor color_navy()public static Color Color.Navy { get }public static Color SplashKit.ColorNavy();def color_navy():function ColorNavy(): ColorGenerates a new Color associated to the color old_lace.
Return Type: Color
Returns: A new Color set to old_lace.
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(): ColorGenerates a new Color associated to the color olive.
Return Type: Color
Returns: A new Color set to olive.
Signatures:
#define COLOR_OLIVEcolor color_olive()public static Color Color.Olive { get }public static Color SplashKit.ColorOlive();def color_olive():function ColorOlive(): ColorGenerates a new Color associated to the color olive_drab.
Return Type: Color
Returns: A new Color set to olive_drab.
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(): ColorGenerates a new Color associated to the color orange.
Return Type: Color
Returns: A new Color set to orange.
Signatures:
#define COLOR_ORANGEcolor color_orange()public static Color Color.Orange { get }public static Color SplashKit.ColorOrange();def color_orange():function ColorOrange(): ColorGenerates a new Color associated to the color orange_red.
Return Type: Color
Returns: A new Color set to orange_red.
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(): ColorGenerates a new Color associated to the color orchid.
Return Type: Color
Returns: A new Color set to orchid.
Signatures:
#define COLOR_ORCHIDcolor color_orchid()public static Color Color.Orchid { get }public static Color SplashKit.ColorOrchid();def color_orchid():function ColorOrchid(): ColorGenerates a new Color associated to the color pale_goldenrod.
Return Type: Color
Returns: A new Color set to pale_goldenrod.
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(): ColorGenerates a new Color associated to the color pale_green.
Return Type: Color
Returns: A new Color set to pale_green.
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(): ColorGenerates a new Color associated to the color pale_turquoise.
Return Type: Color
Returns: A new Color set to pale_turquoise.
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(): ColorGenerates a new Color associated to the color pale_violet_red.
Return Type: Color
Returns: A new Color set to pale_violet_red.
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(): ColorGenerates a new Color associated to the color papaya_whip.
Return Type: Color
Returns: A new Color set to papaya_whip.
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(): ColorGenerates a new Color associated to the color peach_puff.
Return Type: Color
Returns: A new Color set to peach_puff.
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(): ColorGenerates a new Color associated to the color peru.
Return Type: Color
Returns: A new Color set to peru.
Signatures:
#define COLOR_PERUcolor color_peru()public static Color Color.Peru { get }public static Color SplashKit.ColorPeru();def color_peru():function ColorPeru(): ColorGenerates a new Color associated to the color pink.
Return Type: Color
Returns: A new Color set to pink.
Signatures:
#define COLOR_PINKcolor color_pink()public static Color Color.Pink { get }public static Color SplashKit.ColorPink();def color_pink():function ColorPink(): ColorGenerates a new Color associated to the color plum.
Return Type: Color
Returns: A new Color set to plum.
Signatures:
#define COLOR_PLUMcolor color_plum()public static Color Color.Plum { get }public static Color SplashKit.ColorPlum();def color_plum():function ColorPlum(): ColorGenerates a new Color associated to the color powder_blue.
Return Type: Color
Returns: A new Color set to powder_blue.
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(): ColorGenerates a new Color associated to the color purple.
Return Type: Color
Returns: A new Color set to purple.
Signatures:
#define COLOR_PURPLEcolor color_purple()public static Color Color.Purple { get }public static Color SplashKit.ColorPurple();def color_purple():function ColorPurple(): ColorGenerates a new Color associated to the color red.
Return Type: Color
Returns: A new Color set to red.
Signatures:
#define COLOR_REDcolor color_red()public static Color Color.Red { get }public static Color SplashKit.ColorRed();def color_red():function ColorRed(): ColorUsage: {</>}
Generates a new Color associated to the color rosy_brown.
Return Type: Color
Returns: A new Color set to rosy_brown.
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(): ColorGenerates a new Color associated to the color royal_blue.
Return Type: Color
Returns: A new Color set to royal_blue.
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(): ColorGenerates a new Color associated to the color saddle_brown.
Return Type: Color
Returns: A new Color set to saddle_brown.
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(): ColorGenerates a new Color associated to the color salmon.
Return Type: Color
Returns: A new Color set to salmon.
Signatures:
#define COLOR_SALMONcolor color_salmon()public static Color Color.Salmon { get }public static Color SplashKit.ColorSalmon();def color_salmon():function ColorSalmon(): ColorGenerates a new Color associated to the color sandy_brown.
Return Type: Color
Returns: A new Color set to sandy_brown.
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(): ColorGenerates a new Color associated to the color sea_green.
Return Type: Color
Returns: A new Color set to sea_green.
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(): ColorGenerates a new Color associated to the color sea_shell.
Return Type: Color
Returns: A new Color set to sea_shell.
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(): ColorGenerates a new Color associated to the color sienna.
Return Type: Color
Returns: A new Color set to sienna.
Signatures:
#define COLOR_SIENNAcolor color_sienna()public static Color Color.Sienna { get }public static Color SplashKit.ColorSienna();def color_sienna():function ColorSienna(): ColorGenerates a new Color associated to the color silver.
Return Type: Color
Returns: A new Color set to silver.
Signatures:
#define COLOR_SILVERcolor color_silver()public static Color Color.Silver { get }public static Color SplashKit.ColorSilver();def color_silver():function ColorSilver(): ColorGenerates a new Color associated to the color sky_blue.
Return Type: Color
Returns: A new Color set to sky_blue.
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(): ColorGenerates a new Color associated to the color slate_blue.
Return Type: Color
Returns: A new Color set to slate_blue.
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(): ColorGenerates a new Color associated to the color slate_gray.
Return Type: Color
Returns: A new Color set to slate_gray.
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(): ColorGenerates a new Color associated to the color snow.
Return Type: Color
Returns: A new Color set to snow.
Signatures:
#define COLOR_SNOWcolor color_snow()public static Color Color.Snow { get }public static Color SplashKit.ColorSnow();def color_snow():function ColorSnow(): ColorGenerates a new Color associated to the color spring_green.
Return Type: Color
Returns: A new Color set to spring_green.
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(): ColorGenerates a new Color associated to the color steel_blue.
Return Type: Color
Returns: A new Color set to steel_blue.
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(): ColorGenerates a new Color associated to the color swinburne_red.
Return Type: Color
Returns: A new Color set to swinburne_red.
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(): ColorGenerates a new Color associated to the color tan.
Return Type: Color
Returns: A new Color set to tan.
Signatures:
#define COLOR_TANcolor color_tan()public static Color Color.Tan { get }public static Color SplashKit.ColorTan();def color_tan():function ColorTan(): ColorGenerates a new Color associated to the color teal.
Return Type: Color
Returns: A new Color set to teal.
Signatures:
#define COLOR_TEALcolor color_teal()public static Color Color.Teal { get }public static Color SplashKit.ColorTeal();def color_teal():function ColorTeal(): ColorGenerates a new Color associated to the color thistle.
Return Type: Color
Returns: A new Color set to thistle.
Signatures:
#define COLOR_THISTLEcolor color_thistle()public static Color Color.Thistle { get }public static Color SplashKit.ColorThistle();def color_thistle():function ColorThistle(): ColorReturns 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
Returns: A hex string representing the color
Signatures:
string color_to_string(color c)public static string SplashKit.ColorToString(Color c);def color_to_string(c):function ColorToString(c: Color): StringGenerates a new Color associated to the color tomato.
Return Type: Color
Returns: A new Color set to tomato.
Signatures:
#define COLOR_TOMATOcolor color_tomato()public static Color Color.Tomato { get }public static Color SplashKit.ColorTomato();def color_tomato():function ColorTomato(): ColorGenerates a new Color associated to the color transparent.
Return Type: Color
Returns: A transparent color (i.e., a color with an alpha of 0).
Signatures:
#define COLOR_TRANSPARENTcolor color_transparent()public static Color Color.Transparent { get }public static Color SplashKit.ColorTransparent();def color_transparent():function ColorTransparent(): ColorGenerates a new Color associated to the color turquoise.
Return Type: Color
Returns: A new Color set to turquoise.
Signatures:
#define COLOR_TURQUOISEcolor color_turquoise()public static Color Color.Turquoise { get }public static Color SplashKit.ColorTurquoise();def color_turquoise():function ColorTurquoise(): ColorGenerates a new Color associated to the color violet.
Return Type: Color
Returns: A new Color set to violet.
Signatures:
#define COLOR_VIOLETcolor color_violet()public static Color Color.Violet { get }public static Color SplashKit.ColorViolet();def color_violet():function ColorViolet(): ColorGenerates a new Color associated to the color wheat.
Return Type: Color
Returns: A new Color set to wheat.
Signatures:
#define COLOR_WHEATcolor color_wheat()public static Color Color.Wheat { get }public static Color SplashKit.ColorWheat();def color_wheat():function ColorWheat(): ColorGenerates a new Color associated to the color white.
Return Type: Color
Returns: A new Color set to white.
Signatures:
#define COLOR_WHITEcolor color_white()public static Color Color.White { get }public static Color SplashKit.ColorWhite();def color_white():function ColorWhite(): ColorUsage: {</>}
Generates a new Color associated to the color white_smoke.
Return Type: Color
Returns: A new Color set to white_smoke.
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(): ColorGenerates a new Color associated to the color yellow.
Return Type: Color
Returns: A new Color set to yellow.
Signatures:
#define COLOR_YELLOWcolor color_yellow()public static Color Color.Yellow { get }public static Color SplashKit.ColorYellow();def color_yellow():function ColorYellow(): ColorUsage: {</>}
Generates a new Color associated to the color yellow_green.
Return Type: Color
Returns: A new Color set to yellow_green.
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(): ColorReturns the green of the supplied color.
Parameters:
| Name | Type | Description |
|---|---|---|
| c | Color | The color |
Return Type: Integer
Returns: The green component of the color
Signatures:
int green_of(color c)public static int SplashKit.GreenOf(Color c);def green_of(c):function GreenOf(c: Color): IntegerReturs 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
Returns: The color from its hue, saturation and brightness.
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): ColorUsage: {</>}
Returns the hue of the supplied color.
Parameters:
| Name | Type | Description |
|---|---|---|
| c | Color | The color |
Return Type: Double
Returns: The hue component of the color
Signatures:
double hue_of(color c)public static double SplashKit.HueOf(Color c);def hue_of(c):function HueOf(c: Color): DoubleUsage: {</>}
Creates and returns a random color where the color and its opacity are random.
Return Type: Color
Returns: A random color
Signatures:
color random_color()public static Color Color.Random();public static Color SplashKit.RandomColor();def random_color():function RandomColor(): ColorCreates 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
Returns: A random color with the set alpha
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): ColorReturns the red of the supplied color.
Parameters:
| Name | Type | Description |
|---|---|---|
| c | Color | The color |
Return Type: Integer
Returns: The red component of the color
Signatures:
int red_of(color c)public static int SplashKit.RedOf(Color c);def red_of(c):function RedOf(c: Color): IntegerGets 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
Returns: The color from its different 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);def rgb_color_from_double(red, green, blue):function RGBColor(red: Double; green: Double; blue: Double): ColorGets 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
Returns: The color from its different 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);def rgb_color(red, green, blue):function RGBColor(red: Integer; green: Integer; blue: Integer): ColorGets 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
Returns: The color from its different component
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): ColorGets 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
Returns: The color from its different component
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): ColorReturns the saturation of the supplied color.
Parameters:
| Name | Type | Description |
|---|---|---|
| c | Color | The color |
Return Type: Double
Returns: The saturation component of the color
Signatures:
double saturation_of(color c)public static double SplashKit.SaturationOf(Color c);def saturation_of(c):function SaturationOf(c: Color): DoubleUsage: {</>}
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
Returns: The color represented in the string
Signatures:
color string_to_color(string str)public static Color SplashKit.StringToColor(string str);def string_to_color(str):function StringToColor(str: String): Color