25 Articles in this category
-
DarkLight
color
25 Articles in this category
-
DarkLight
Alpha
Returns a decimal between 0 and 1 representing the color's alpha component.
Function signature
ALPHA(color: String) => Number
Examples
Updated on : 18 May 2022
Blue
Returns an integer between 0 and 255 representing the color's blue component.
Function signature
BLUE(color: String) => Number
Examples
Updated on : 18 May 2022
Color
Parse the given text as a color and return a text representing a valid color, or null if the color cannot be parsed.
Function signature
COLOR(text: String) => String
Examples
Updated on : 18 May 2022
Darken
Returns the color with the lightness component decreased by a percentage, given as a decimal number between 0 and 1.
Function signature
DARKEN(color: String, darknesspercentage: Number) => String
Examples
Updated on : 18 May 2022
Desaturate
Returns the color with the saturation component decreased by a percentage, given as a decimal number between 0 and 1.
Function signature
DESATURATE(color: String, saturationpercentage: Number) => String
Examples
Updated on : 18 May 2022
Fade_in
Returns the color with the alpha component increased by a percentage, given as a decimal number between 0 and 1.
Function signature
FADE_IN(color: String, alpha: Number) => String
Examples
Updated on : 18 May 2022
Fade_out
Returns the color with the alpha component decreased by a percentage, given as a decimal number between 0 and 1.
Function signature
FADE_OUT(color: String, alpha: Number) => String
Examples
Updated on : 18 May 2022
Green
Returns an integer between 0 and 255 representing the color's green component.
Function signature
GREEN(color: String) => Number
Examples
Updated on : 18 May 2022
HUE
Returns an integer between 0 and 360 representing the hue component of the color.
Function signature
HUE(color: String) => Number
Examples
Updated on : 18 May 2022
Lighten
Returns the color with the lightness component decreased by a percentage, given as a decimal number between 0 and 1.
Function signature
LIGHTEN(color: String, lightnesspercentage: Number) => String
Examples
Updated on : 18 May 2022
Lightness
Returns an integer between 0 and 1 representing the hue component of the color.
Function signature
LIGHTNESS(color: String) => Number
Examples
Updated on : 18 May 2022
Red
Returns an integer between 0 and 255 representing the color's red component.
Function signature
RED(color: String) => Number
Examples
Updated on : 18 May 2022
Saturate
Returns the color with the saturation component increased by a percentage, given as a decimal number between 0 and 1.
Function signature
SATURATE(color: String, saturationpercentage: Number) => String
Examples
Updated on : 18 May 2022
Saturation
Returns a decimal between 0 and 1 representing the color's saturation component.
Function signature
SATURATION(color: String) => Number
Examples
Updated on : 18 May 2022
Set_alpha
Returns the given color with the alpha component changed to the given new value.
Function signature
SET_ALPHA(color: String, alpha: Number) => String
Examples
Updated on : 18 May 2022
Set_blue
Returns the given color with the blue component changed to the given new value.
Function signature
SET_BLUE(color: String, blue: Number) => String
Examples
Updated on : 18 May 2022
Set_green
Returns the given color with the green component changed to the given new value.
Function signature
SET_GREEN(color: String, green: Number) => String
Examples
Updated on : 18 May 2022
Set_HUE
Returns the given color with the hue component changed to the given new value.
Function signature
SET_HUE(color: String, hue: Number) => String
Examples
Updated on : 18 May 2022
Set_lightness
Returns the given color with the lightness component changed to the given new value.
Function signature
SET_LIGHTNESS(color: String, lightness: Number) => String
Examples
Updated on : 18 May 2022
Set_red
Returns the given color with the red component changed to the given new value.
Function signature
SET_RED(color: String, red: Number) => String
Examples
Updated on : 18 May 2022