Functions
Alpha Of
Returns the alpha of the supplied color.
- Return Type
-
Integer
The alpha component of the color
- Parameters
-
Name Type Description C The color
- Signatures
-
int alpha_of(color c)
public static int SplashKit.AlphaOf(Color c);
function AlphaOf(c: Color): Integer
def alpha_of(c):
Blue Of
Returns the blue of the supplied color.
- Return Type
-
Integer
The blue component of the color
- Parameters
-
Name Type Description C The color
- Signatures
-
int blue_of(color c)
public static int SplashKit.BlueOf(Color c);
function BlueOf(c: Color): Integer
def blue_of(c):
Brightness Of
Returns the brightness of the supplied color.
- Return Type
-
Double
The brightness component of the color
- Parameters
-
Name Type Description C The color
- Signatures
-
double brightness_of(color c)
public static double SplashKit.BrightnessOf(Color c);
function BrightnessOf(c: Color): Double
def brightness_of(c):
Color Alice Blue
Generates a new Color
associated to the color Alice Blue
.
Color Antique White
Generates a new Color
associated to the color Antique White
.
Color Aqua
Generates a new Color
associated to the color Aqua
.
Color Aquamarine
Generates a new Color
associated to the color Aquamarine
.
Color Azure
Generates a new Color
associated to the color Azure
.
Color Beige
Generates a new Color
associated to the color Beige
.
Color Bisque
Generates a new Color
associated to the color Bisque
.
Color Black
Generates a new Color
associated to the color Black
.
Color Blanched Almond
Generates a new Color
associated to the color Blanched Almond
.
Color Blue
Generates a new Color
associated to the color Blue
.
Color Blue Violet
Generates a new Color
associated to the color Blue Violet
.
Color Bright Green
Generates a new Color
associated to the color Bright Green
.
Color Brown
Generates a new Color
associated to the color Brown
.
Color Burly Wood
Generates a new Color
associated to the color Burly Wood
.
Color Cadet Blue
Generates a new Color
associated to the color Cadet Blue
.
Color Chartreuse
Generates a new Color
associated to the color Chartreuse
.
Color Chocolate
Generates a new Color
associated to the color Chocolate
.
Color Coral
Generates a new Color
associated to the color Coral
.
Color Cornflower Blue
Generates a new Color
associated to the color Cornflower Blue
.
Color Cornsilk
Generates a new Color
associated to the color Cornsilk
.
Color Crimson
Generates a new Color
associated to the color Crimson
.
Color Cyan
Generates a new Color
associated to the color Cyan
.
Color Dark Blue
Generates a new Color
associated to the color Dark Blue
.
Color Dark Cyan
Generates a new Color
associated to the color Dark Cyan
.
Color Dark Goldenrod
Generates a new Color
associated to the color Dark Goldenrod
.
Color Dark Gray
Generates a new Color
associated to the color Dark Gray
.
Color Dark Green
Generates a new Color
associated to the color Dark Green
.
Color Dark Khaki
Generates a new Color
associated to the color Dark Khaki
.
Color Dark Magenta
Generates a new Color
associated to the color Dark Magenta
.
Color Dark Olive Green
Generates a new Color
associated to the color Dark Olive Green
.
Color Dark Orange
Generates a new Color
associated to the color Dark Orange
.
Color Dark Orchid
Generates a new Color
associated to the color Dark Orchid
.
Color Dark Red
Generates a new Color
associated to the color Dark Red
.
Color Dark Salmon
Generates a new Color
associated to the color Dark Salmon
.
Color Dark Sea Green
Generates a new Color
associated to the color Dark Sea Green
.
Color Dark Slate Blue
Generates a new Color
associated to the color Dark Slate Blue
.
Color Dark Slate Gray
Generates a new Color
associated to the color Dark Slate Gray
.
Color Dark Turquoise
Generates a new Color
associated to the color Dark Turquoise
.
Color Dark Violet
Generates a new Color
associated to the color Dark Violet
.
Color Deep Pink
Generates a new Color
associated to the color Deep Pink
.
Color Deep Sky Blue
Generates a new Color
associated to the color Deep Sky Blue
.
Color Dim Gray
Generates a new Color
associated to the color Dim Gray
.
Color Dodger Blue
Generates a new Color
associated to the color Dodger Blue
.
Color Firebrick
Generates a new Color
associated to the color Firebrick
.
Color Floral White
Generates a new Color
associated to the color Floral White
.
Color Forest Green
Generates a new Color
associated to the color Forest Green
.
Color Fuchsia
Generates a new Color
associated to the color Fuchsia
.
Color Gainsboro
Generates a new Color
associated to the color Gainsboro
.
Color Ghost White
Generates a new Color
associated to the color Ghost White
.
Color Gold
Generates a new Color
associated to the color Gold
.
Color Goldenrod
Generates a new Color
associated to the color Goldenrod
.
Color Gray
Generates a new Color
associated to the color Gray
.
Color Green
Generates a new Color
associated to the color Green
.
Color Green Yellow
Generates a new Color
associated to the color Green Yellow
.
Color Honeydew
Generates a new Color
associated to the color Honeydew
.
Color Hot Pink
Generates a new Color
associated to the color Hot Pink
.
Color Indian Red
Generates a new Color
associated to the color Indian Red
.
Color Indigo
Generates a new Color
associated to the color Indigo
.
Color Ivory
Generates a new Color
associated to the color Ivory
.
Color Khaki
Generates a new Color
associated to the color Khaki
.
Color Lavender
Generates a new Color
associated to the color Lavender
.
Color Lavender Blush
Generates a new Color
associated to the color Lavender Blush
.
Color Lawn Green
Generates a new Color
associated to the color Lawn Green
.
Color Lemon Chiffon
Generates a new Color
associated to the color Lemon Chiffon
.
Color Light Blue
Generates a new Color
associated to the color Light Blue
.
Color Light Coral
Generates a new Color
associated to the color Light Coral
.
Color Light Cyan
Generates a new Color
associated to the color Light Cyan
.
Color Light Goldenrod Yellow
Generates a new Color
associated to the color Light Goldenrod Yellow
.
- Return Type
-
A new
Color
set toLight Goldenrod Yellow
. - Signatures
-
#define COLOR_LIGHT_GOLDENROD_YELLOW color color_light_goldenrod_yellow()
public static Color Color.LightGoldenrodYellow { get } public static Color SplashKit.ColorLightGoldenrodYellow();
function ColorLightGoldenrodYellow(): Color
def color_light_goldenrod_yellow():
Color Light Gray
Generates a new Color
associated to the color Light Gray
.
Color Light Green
Generates a new Color
associated to the color Light Green
.
Color Light Pink
Generates a new Color
associated to the color Light Pink
.
Color Light Salmon
Generates a new Color
associated to the color Light Salmon
.
Color Light Sea Green
Generates a new Color
associated to the color Light Sea Green
.
Color Light Sky Blue
Generates a new Color
associated to the color Light Sky Blue
.
Color Light Slate Gray
Generates a new Color
associated to the color Light Slate Gray
.
Color Light Steel Blue
Generates a new Color
associated to the color Light Steel Blue
.
Color Light Yellow
Generates a new Color
associated to the color Light Yellow
.
Color Lime
Generates a new Color
associated to the color Lime
.
Color Lime Green
Generates a new Color
associated to the color Lime Green
.
Color Linen
Generates a new Color
associated to the color Linen
.
Color Magenta
Generates a new Color
associated to the color Magenta
.
Color Maroon
Generates a new Color
associated to the color Maroon
.
Color Medium Aquamarine
Generates a new Color
associated to the color Medium Aquamarine
.
- Return Type
-
A new
Color
set toMedium Aquamarine
. - Signatures
-
#define COLOR_MEDIUM_AQUAMARINE color color_medium_aquamarine()
public static Color Color.MediumAquamarine { get } public static Color SplashKit.ColorMediumAquamarine();
function ColorMediumAquamarine(): Color
def color_medium_aquamarine():
Color Medium Blue
Generates a new Color
associated to the color Medium Blue
.
Color Medium Orchid
Generates a new Color
associated to the color Medium Orchid
.
Color Medium Purple
Generates a new Color
associated to the color Medium Purple
.
Color Medium Sea Green
Generates a new Color
associated to the color Medium Sea Green
.
Color Medium Slate Blue
Generates a new Color
associated to the color Medium Slate Blue
.
- Return Type
-
A new
Color
set toMedium Slate Blue
. - Signatures
-
#define COLOR_MEDIUM_SLATE_BLUE color color_medium_slate_blue()
public static Color Color.MediumSlateBlue { get } public static Color SplashKit.ColorMediumSlateBlue();
function ColorMediumSlateBlue(): Color
def color_medium_slate_blue():
Color Medium Spring Green
Generates a new Color
associated to the color Medium Spring Green
.
- Return Type
-
A new
Color
set toMedium Spring Green
. - Signatures
-
#define COLOR_MEDIUM_SPRING_GREEN color color_medium_spring_green()
public static Color Color.MediumSpringGreen { get } public static Color SplashKit.ColorMediumSpringGreen();
function ColorMediumSpringGreen(): Color
def color_medium_spring_green():
Color Medium Turquoise
Generates a new Color
associated to the color Medium Turquoise
.
- Return Type
-
A new
Color
set toMedium Turquoise
. - Signatures
-
#define COLOR_MEDIUM_TURQUOISE color color_medium_turquoise()
public static Color Color.MediumTurquoise { get } public static Color SplashKit.ColorMediumTurquoise();
function ColorMediumTurquoise(): Color
def color_medium_turquoise():
Color Medium Violet Red
Generates a new Color
associated to the color Medium Violet Red
.
- Return Type
-
A new
Color
set toMedium Violet Red
. - Signatures
-
#define COLOR_MEDIUM_VIOLET_RED color color_medium_violet_red()
public static Color Color.MediumVioletRed { get } public static Color SplashKit.ColorMediumVioletRed();
function ColorMediumVioletRed(): Color
def color_medium_violet_red():
Color Midnight Blue
Generates a new Color
associated to the color Midnight Blue
.
Color Mint Cream
Generates a new Color
associated to the color Mint Cream
.
Color Misty Rose
Generates a new Color
associated to the color Misty Rose
.
Color Moccasin
Generates a new Color
associated to the color Moccasin
.
Color Navajo White
Generates a new Color
associated to the color Navajo White
.
Color Navy
Generates a new Color
associated to the color Navy
.
Color Old Lace
Generates a new Color
associated to the color Old Lace
.
Color Olive
Generates a new Color
associated to the color Olive
.
Color Olive Drab
Generates a new Color
associated to the color Olive Drab
.
Color Orange
Generates a new Color
associated to the color Orange
.
Color Orange Red
Generates a new Color
associated to the color Orange Red
.
Color Orchid
Generates a new Color
associated to the color Orchid
.
Color Pale Goldenrod
Generates a new Color
associated to the color Pale Goldenrod
.
Color Pale Green
Generates a new Color
associated to the color Pale Green
.
Color Pale Turquoise
Generates a new Color
associated to the color Pale Turquoise
.
Color Pale Violet Red
Generates a new Color
associated to the color Pale Violet Red
.
Color Papaya Whip
Generates a new Color
associated to the color Papaya Whip
.
Color Peach Puff
Generates a new Color
associated to the color Peach Puff
.
Color Peru
Generates a new Color
associated to the color Peru
.
Color Pink
Generates a new Color
associated to the color Pink
.
Color Plum
Generates a new Color
associated to the color Plum
.
Color Powder Blue
Generates a new Color
associated to the color Powder Blue
.
Color Purple
Generates a new Color
associated to the color Purple
.
Color Red
Generates a new Color
associated to the color Red
.
Color Rosy Brown
Generates a new Color
associated to the color Rosy Brown
.
Color Royal Blue
Generates a new Color
associated to the color Royal Blue
.
Color Saddle Brown
Generates a new Color
associated to the color Saddle Brown
.
Color Salmon
Generates a new Color
associated to the color Salmon
.
Color Sandy Brown
Generates a new Color
associated to the color Sandy Brown
.
Color Sea Green
Generates a new Color
associated to the color Sea Green
.
Color Sea Shell
Generates a new Color
associated to the color Sea Shell
.
Color Sienna
Generates a new Color
associated to the color Sienna
.
Color Silver
Generates a new Color
associated to the color Silver
.
Color Sky Blue
Generates a new Color
associated to the color Sky Blue
.
Color Slate Blue
Generates a new Color
associated to the color Slate Blue
.
Color Slate Gray
Generates a new Color
associated to the color Slate Gray
.
Color Snow
Generates a new Color
associated to the color Snow
.
Color Spring Green
Generates a new Color
associated to the color Spring Green
.
Color Steel Blue
Generates a new Color
associated to the color Steel Blue
.
Color Swinburne Red
Generates a new Color
associated to the color Swinburne Red
.
Color Tan
Generates a new Color
associated to the color Tan
.
Color Teal
Generates a new Color
associated to the color Teal
.
Color Thistle
Generates a new Color
associated to the color Thistle
.
Color To String
Returns a string representation of the color. Format will be a hex string starting with a #, followed by the red, green, blue, and alpha values of the color.
- Return Type
-
String
A hex string representing the color
- Parameters
-
Name Type Description C The color
- Signatures
-
string color_to_string(color c)
public static string SplashKit.ColorToString(Color c);
function ColorToString(c: Color): String
def color_to_string(c):
Color Tomato
Generates a new Color
associated to the color Tomato
.
Color Transparent
Generates a new Color
associated to the color Transparent
.
- Return Type
-
A
Transparent
color (i.e., a color with anAlpha
of 0). - Signatures
-
#define COLOR_TRANSPARENT color color_transparent()
public static Color Color.Transparent { get } public static Color SplashKit.ColorTransparent();
function ColorTransparent(): Color
def color_transparent():
Color Turquoise
Generates a new Color
associated to the color Turquoise
.
Color Violet
Generates a new Color
associated to the color Violet
.
Color Wheat
Generates a new Color
associated to the color Wheat
.
Color White
Generates a new Color
associated to the color White
.
Color White Smoke
Generates a new Color
associated to the color White Smoke
.
Color Yellow
Generates a new Color
associated to the color Yellow
.
Color Yellow Green
Generates a new Color
associated to the color Yellow Green
.
Green Of
Returns the green of the supplied color.
- Return Type
-
Integer
The green component of the color
- Parameters
-
Name Type Description C The color
- Signatures
-
int green_of(color c)
public static int SplashKit.GreenOf(Color c);
function GreenOf(c: Color): Integer
def green_of(c):
Hsb Color
Returs a color from a combination of hue, saturation, and brightness.
- Return Type
-
The color from its hue, saturation and brightness.
- Parameters
-
Name Type Description Hue Double
The hue of the color
Saturation Double
The saturation of that hue
Brightness Double
The brightness of the color
- Signatures
-
color hsb_color(double hue, double saturation, double brightness)
public static Color Color.HSBColor(double hue, double saturation, double brightness); public static Color SplashKit.HSBColor(double hue, double saturation, double brightness);
function HSBColor(hue: Double; saturation: Double; brightness: Double): Color
def hsb_color(hue, saturation, brightness):
Hue Of
Returns the hue of the supplied color.
- Return Type
-
Double
The hue component of the color
- Parameters
-
Name Type Description C The color
- Signatures
-
double hue_of(color c)
public static double SplashKit.HueOf(Color c);
function HueOf(c: Color): Double
def hue_of(c):
Random Color
Creates and returns a random color where the color and its opacity are random.
- Return Type
-
A random color
- Signatures
-
color random_color()
public static Color Color.RandomColor(); public static Color SplashKit.RandomColor();
function RandomColor(): Color
def random_color():
Random RGB Color
Creates and returns a random color where the color is random, but the opacity is set to the passed in value.
- Return Type
-
A random color with the set alpha
- Parameters
-
Name Type Description Alpha Integer
The set alpha (opacity) value (between 0 and 255)
- Signatures
-
color random_rgb_color(int alpha)
public static Color Color.RandomRGBColor(int alpha); public static Color SplashKit.RandomRGBColor(int alpha);
function RandomRGBColor(alpha: Integer): Color
def random_rgb_color(alpha):
Red Of
Returns the red of the supplied color.
- Return Type
-
Integer
The red component of the color
- Parameters
-
Name Type Description C The color
- Signatures
-
int red_of(color c)
public static int SplashKit.RedOf(Color c);
function RedOf(c: Color): Integer
def red_of(c):
RGB Color
RGB Color
Gets a color given its RGB components. Each of the components has a value between 0 and 1.
- Return Type
-
The color from its different component
- Parameters
-
Name Type Description Red Double
The red component
Green Double
The green component
Blue Double
The blue component
- Signatures
-
color rgb_color(double red, double green, double blue)
public static Color Color.RGBColor(double red, double green, double blue); public static Color SplashKit.RGBColor(double red, double green, double blue);
function RGBColor(red: Double; green: Double; blue: Double): Color
def rgb_color_from_double(red, green, blue):
RGB Color
Gets a color given its RGB components. Each of the components has a value between 0 and 255.
- Return Type
-
The color from its different component
- Parameters
-
Name Type Description Red Integer
The red component
Green Integer
The green component
Blue Integer
The blue component
- Signatures
-
color rgb_color(int red, int green, int blue)
public static Color Color.RGBColor(int red, int green, int blue); public static Color SplashKit.RGBColor(int red, int green, int blue);
function RGBColor(red: Integer; green: Integer; blue: Integer): Color
def rgb_color(red, green, blue):
Rgba Color
Rgba Color
Gets a color given its color components. Each of the components has a value between 0 and 1.0.
- Return Type
-
The color from its different component
- Parameters
-
Name Type Description Red Double
The red component (between 0 and 1.0)
Green Double
The green component (between 0 and 1.0)
Blue Double
The blue component (between 0 and 1.0)
Alpha Double
The alpha (opacity) component (between 0 and 1.0)
- Signatures
-
color rgba_color(double red, double green, double blue, double alpha)
public static Color Color.RGBAColor(double red, double green, double blue, double alpha); public static Color SplashKit.RGBAColor(double red, double green, double blue, double alpha);
function RGBAColor(red: Double; green: Double; blue: Double; alpha: Double): Color
def rgba_color_from_double(red, green, blue, alpha):
Rgba Color
Gets a color given its color components. Each of the components has a value between 0 and 255.
- Return Type
-
The color from its different component
- Parameters
-
Name Type Description Red Integer
The red component (between 0 and 255)
Green Integer
The green component (between 0 and 255)
Blue Integer
The blue component (between 0 and 255)
Alpha Integer
The alpha (opacity) component (between 0 and 255)
- Signatures
-
color rgba_color(int red, int green, int blue, int alpha)
public static Color Color.RGBAColor(int red, int green, int blue, int alpha); public static Color SplashKit.RGBAColor(int red, int green, int blue, int alpha);
function RGBAColor(red: Integer; green: Integer; blue: Integer; alpha: Integer): Color
def rgba_color(red, green, blue, alpha):
Saturation Of
Returns the saturation of the supplied color.
- Return Type
-
Double
The saturation component of the color
- Parameters
-
Name Type Description C The color
- Signatures
-
double saturation_of(color c)
public static double SplashKit.SaturationOf(Color c);
function SaturationOf(c: Color): Double
def saturation_of(c):
String To Color
Returns a color for the passed in color string. The format must be #, followed by the hex values for the red, green, blue, and alpha components of the color.
- Return Type
-
The color represented in the string
- Parameters
-
Name Type Description Str String
The hex string representing the color
- Signatures
-
color string_to_color(string str)
public static Color SplashKit.StringToColor(string str);
function StringToColor(str: String): Color
def string_to_color(str):