public class DTColor
| Modifier and Type | Method and Description |
|---|---|
static Color | adjustHue(Color c!, BBjNumber hueDegrees!) |
static Color | darken(Color c!, float factor!) |
static Color | desaturate(Color c!, float factor!) |
static Color | hslToRgb(HSL hsl!)Converts an HSL color value to RGB. Conversion formula adapted from http://en.wikipedia.org/wiki/HSL_color_space. Assumes h, s, and l are contained in the set [0, 1] and returns r, g, and b in the set [0, 255]. |
static BBjNumber | hue2rgb(BBjNumber p, BBjNumber q, BBjNumber t) |
static Color | lighten(Color c!, float factor!) |
static BBjColor | materializeCSSToBBjColor(BBjString materializeColor!) |
static HSL | rgbToHsl(Color c!)Converts an RGB color value to HSL. Conversion formula adapted from http://en.wikipedia.org/wiki/HSL_color_space. Assumes r, g, and b are contained in the set [0, 255] and returns h, s, and l in the set [0, 1]. |
static HSL | rgbToHsl(BBjNumber r, BBjNumber g, BBjNumber b) |
static Color | saturate(Color c!, float factor!) |
static BBjString | toRGBCSSString(Color c!) |
public static Color adjustHue(Color c!, BBjNumber hueDegrees!)public static Color hslToRgb(HSL hsl!)
Converts an HSL color value to RGB. Conversion formula adapted from http://en.wikipedia.org/wiki/HSL_color_space. Assumes h, s, and l are contained in the set [0, 1] and returns r, g, and b in the set [0, 255].
{number} h The hue{number} s The saturation{number} l The lightnesspublic static BBjNumber hue2rgb(BBjNumber p, BBjNumber q, BBjNumber t)public static BBjColor materializeCSSToBBjColor(BBjString materializeColor!)
public static HSL rgbToHsl(Color c!)
Converts an RGB color value to HSL. Conversion formula adapted from http://en.wikipedia.org/wiki/HSL_color_space. Assumes r, g, and b are contained in the set [0, 255] and returns h, s, and l in the set [0, 1].
{number} r The red color value{number} g The green color value{number} b The blue color valuepublic static HSL rgbToHsl(BBjNumber r, BBjNumber g, BBjNumber b)