|
Stud.IP
jlu_3.3 Revision
|

Static Public Member Functions | |
| static | hex2array ($color) |
| static | rgba2array ($color) |
| static | rgb2array ($color) |
| static | hsl2array ($color) |
| static | mix ($color1, $color2, $percentOfColor1=50, $f=null) |
| static | opacity ($color, $opacity) |
| static | brighten ($color, $factor=35) |
| static | rgba ($color) |
| static | rgb ($color) |
| static | hex ($color) |
| static | hsl ($color) |
| static | hsla ($color) |
Static Public Attributes | |
| static | $colorstrings |
class to mix colors and convert them between different types
|
static |
Make the passed color brighter
| string | $color | any type of css-valid color |
| int | $factor | percentage of brightning, 100 for white and 0 for no changes to color |
|
static |
converts a css-hex-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
converts a css-hex-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
converts a css-hsl-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
converts a css-hsl-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
converts a css-hsla-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
Mixes two colors by preferring the first one with $percentOfColor1 percent. If color2 is the only color with alpha-chanel, it will return a color in the format of color2 else (most of the time) in the format of color1.
|
static |
Sets the opacity for a color. Hue and saturation is kept, but opacity is changed. Returns a format with alpha-chanel (rgba or hsla) depending on the given format.
|
static |
converts a css-rgb-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
converts a css-rgb-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
converts a css-rgba-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |
converts a css-rgba-color into a rgba-quadruple
| string | $color | the color to be converted |
|
static |