package color
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Color
Source
This module deals with colors.
Representation of a color.
Creates a color
from integer RGB values between 0 and 255 and a floating point alpha value between 0.0 and 1.0. Algorithm adapted from: https://en.wikipedia.org/wiki/HSL_and_HSV
Creates a color
from RGB and alpha values between 0.0 and 1.0
Creates a color
from Hue, Saturation, Lightness and Alpha values. Hue is in degrees, a float value between 0.0 and 360.0. Saturation, Lightness and Alpha are float values between 0.0 and 1.0
Creates a color
from Hue, Saturation and Lightness. Hue is in degrees, a float value between 0.0 and 360.0. Saturation and Lightness are float values between 0.0 and 1.0
Converts a color
to its rgba value. All values are floats between 0.0 and 1.0
Converts a color
to its rgba value. RGB values are integers in the range of 0 to 255. The alpha channel is a float between 0.0 and 1.0