Make sure converting #saturation getter uses HSB, not HSL.

Fixes #111.
This commit is contained in:
Jürg Lehni 2012-12-17 23:03:02 +01:00
parent 481b2e00ac
commit 87393d130d

View file

@ -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 = {},