mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
parent
481b2e00ac
commit
87393d130d
1 changed files with 4 additions and 2 deletions
|
@ -50,8 +50,10 @@ var Color = this.Color = Base.extend(new function() {
|
|||
var components = {
|
||||
gray: ['gray'],
|
||||
rgb: ['red', 'green', 'blue'],
|
||||
hsb: ['hue', 'saturation', 'brightness'],
|
||||
hsl: ['hue', 'saturation', 'lightness']
|
||||
hsl: ['hue', 'saturation', 'lightness'],
|
||||
// Define hsb last, so its converting saturation getter overrides the
|
||||
// one of HSL:
|
||||
hsb: ['hue', 'saturation', 'brightness']
|
||||
};
|
||||
|
||||
var colorCache = {},
|
||||
|
|
Loading…
Reference in a new issue