1 |
/*
|
1 |
/*
|
2 |
Copyright (c) 2004-2006, The Dojo Foundation
|
2 |
Copyright (c) 2004-2006, The Dojo Foundation
|
3 |
All Rights Reserved.
|
3 |
All Rights Reserved.
|
4 |
|
4 |
|
5 |
Licensed under the Academic Free License version 2.1 or above OR the
|
5 |
Licensed under the Academic Free License version 2.1 or above OR the
|
6 |
modified BSD license. For more information on Dojo licensing, see:
|
6 |
modified BSD license. For more information on Dojo licensing, see:
|
7 |
|
7 |
|
8 |
http://dojotoolkit.org/community/licensing.shtml
|
8 |
http://dojotoolkit.org/community/licensing.shtml
|
9 |
*/
|
9 |
*/
|
- |
|
10 |
|
- |
|
11 |
|
10 |
|
12 |
|
11 |
dojo.provide("dojo.graphics.color.hsl");
|
13 |
dojo.provide("dojo.graphics.color.hsl");
|
12 |
dojo.require("dojo.gfx.color.hsl");
|
14 |
dojo.require("dojo.gfx.color.hsl");
|
13 |
dojo.deprecated("dojo.graphics.color.hsl has been replaced with dojo.gfx.color.hsl", "0.5");
|
15 |
dojo.deprecated("dojo.graphics.color.hsl has been replaced with dojo.gfx.color.hsl", "0.5");
|
14 |
dojo.graphics.color.rgb2hsl = function (r, g, b) {
|
16 |
dojo.graphics.color.rgb2hsl = function (r, g, b) {
|
15 |
dojo.deprecated("dojo.graphics.color.rgb2hsl has been replaced with dojo.gfx.color.rgb2hsl", "0.5");
|
17 |
dojo.deprecated("dojo.graphics.color.rgb2hsl has been replaced with dojo.gfx.color.rgb2hsl", "0.5");
|
16 |
return dojo.gfx.color.rgb2hsl(r, g, b);
|
18 |
return dojo.gfx.color.rgb2hsl(r, g, b);
|
17 |
};
|
19 |
};
|
18 |
dojo.graphics.color.hsl2rgb = function (h, s, l) {
|
20 |
dojo.graphics.color.hsl2rgb = function (h, s, l) {
|
19 |
dojo.deprecated("dojo.graphics.color.hsl2rgb has been replaced with dojo.gfx.color.hsl2rgb", "0.5");
|
21 |
dojo.deprecated("dojo.graphics.color.hsl2rgb has been replaced with dojo.gfx.color.hsl2rgb", "0.5");
|
20 |
return dojo.gfx.color.hsl2rgb(h, s, l);
|
22 |
return dojo.gfx.color.hsl2rgb(h, s, l);
|
21 |
};
|
23 |
};
|
22 |
dojo.graphics.color.hsl2hex = function (h, s, l) {
|
24 |
dojo.graphics.color.hsl2hex = function (h, s, l) {
|
23 |
dojo.deprecated("dojo.graphics.color.hsl2hex has been replaced with dojo.gfx.color.hsl2hex", "0.5");
|
25 |
dojo.deprecated("dojo.graphics.color.hsl2hex has been replaced with dojo.gfx.color.hsl2hex", "0.5");
|
24 |
return dojo.gfx.color.hsl2hex(h, s, l);
|
26 |
return dojo.gfx.color.hsl2hex(h, s, l);
|
25 |
};
|
27 |
};
|
26 |
dojo.graphics.color.hex2hsl = function (hex) {
|
28 |
dojo.graphics.color.hex2hsl = function (hex) {
|
27 |
dojo.deprecated("dojo.graphics.color.hex2hsl has been replaced with dojo.gfx.color.hex2hsl", "0.5");
|
29 |
dojo.deprecated("dojo.graphics.color.hex2hsl has been replaced with dojo.gfx.color.hex2hsl", "0.5");
|
28 |
return dojo.gfx.color.hex2hsl(hex);
|
30 |
return dojo.gfx.color.hex2hsl(hex);
|
29 |
};
|
31 |
};
|
30 |
|
32 |
|