Overview
These functions all return a color.
You might use these functions in a Set Variable action to change an object's color.
Color Functions
RBGA
Return Color
rgba(red, green, blue, alpha)
This function returns a color with RGBA values (R, G, B: 0-255; A: 0-1).
Return Array
rgba([red, green, blue, alpha])
This function returns a color with RGBA values (R, G, B: 0-255; A: 0-1).
RBG To HSL
Return Color
rgbToHSL(red, green, blue)
This function converts RGB values to an array of HSL values (R, G, B: 0-255).
Return Array
rgbToHSL([red, green, blue])
This function converts an array of RGB values to an array of HSL values (R, G, B: 0-255).
RBG To HSB
Return Color
rgbToHSB(red, green, blue)
This function converts RGB values to an array of HSB values (R, G, B: 0-255).
Return Array
rgbToHSB([red, green, blue])
This function converts an array of RGB values to an array of HSB values (R, G, B: 0-255).
HSLA
Return Color
hsla(hue, saturation, lightness, alpha)
This function returns a color with HSL values (H: 0-360; S, L, A: 0-1)).
Return Array
hsla([hue, saturation, lightness, alpha])
This function returns a color with HSL values (H: 0-360; S, L, A: 0-1).
HSL To RGB
Return Color
hslToRGB(hue, saturation, lightness)
This function converts HSL values to an array of RGB values (H: 0-360; S, L: 0-1).
Return Array
hslToRGB([hue, saturation, lightness])
This function converts an array of HSL values to an array of RGB values (H: 0-360; S, L: 0-1).
HSL To HSB
Return Color
hslToHSB(hue, saturation, lightness)
This function converts HSL values to an array of HSB values (H: 0-360; S, L: 0-1).
Return Array
hslToHSB([hue, saturation, lightness])
This function converts an array of HSL values to an array of HSB values (H: 0-360; S, L: 0-1).
HSBA
Return Color
hsba(hue, saturation, brightness, alpha)
This function returns a color with HSB values (H: 0-360; S, B, A: 0-1)).
Return Array
hsba([hue, saturation, brightness, alpha])
This function returns a color with HSB values (H: 0-360; S, B, A: 0-1).
HSB To RGB
Return Color
hsbToRGB(hue, saturation, brightness)
This function converts HSB values to an array of RGB values (H: 0-360; S, B: 0-1).
Return Array
hsbToRGB([hue, saturation, brightness])
This function converts an array of HSB values to an array of RGB values (H: 0-360; S, B: 0-1).
HSB To HSL
Return Color
hsbToHSL(hue, saturation, brightness)
This function converts HSB values to an array of HSL values (H: 0-360; S, B: 0-1).
Return Array
hslToHSB([hue, saturation, lightness])
This function converts an array of HSB values to an array of HSL values (H: 0-360; S, B: 0-1).
HEX
hex("string")
This function returns a color with the given HEX code.
Blend Color
blendColor(color, color, percent)
This function blends two colors based on a percentage (0-1).
Calculate Luminance
calculateLuminance(color)
This function returns the luminance value of the color (0-1).