1318 |
alexandre_ |
1 |
/*
|
|
|
2 |
Copyright (c) 2004-2006, The Dojo Foundation
|
|
|
3 |
All Rights Reserved.
|
|
|
4 |
|
|
|
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:
|
|
|
7 |
|
|
|
8 |
http://dojotoolkit.org/community/licensing.shtml
|
|
|
9 |
*/
|
|
|
10 |
|
1422 |
alexandre_ |
11 |
|
|
|
12 |
|
1318 |
alexandre_ |
13 |
dojo.provide("dojo.graphics.color");
|
|
|
14 |
dojo.require("dojo.gfx.color");
|
|
|
15 |
dojo.deprecated("dojo.graphics.color.Color is now dojo.gfx.color.Color.", "0.5");
|
|
|
16 |
dojo.graphics.color.Color = dojo.gfx.color.Color;
|
|
|
17 |
dojo.graphics.color.named = dojo.gfx.color.named;
|
|
|
18 |
dojo.graphics.color.blend = function (a, b, weight) {
|
|
|
19 |
dojo.deprecated("dojo.graphics.color.blend is now dojo.gfx.color.blend", "0.5");
|
|
|
20 |
return dojo.gfx.color.blend(a, b, weight);
|
|
|
21 |
};
|
|
|
22 |
dojo.graphics.color.blendHex = function (a, b, weight) {
|
|
|
23 |
dojo.deprecated("dojo.graphics.color.blendHex is now dojo.gfx.color.blendHex", "0.5");
|
|
|
24 |
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a), dojo.gfx.color.hex2rgb(b), weight));
|
|
|
25 |
};
|
|
|
26 |
dojo.graphics.color.extractRGB = function (color) {
|
|
|
27 |
dojo.deprecated("dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB", "0.5");
|
|
|
28 |
return dojo.gfx.color.extractRGB(color);
|
|
|
29 |
};
|
|
|
30 |
dojo.graphics.color.hex2rgb = function (hex) {
|
|
|
31 |
dojo.deprecated("dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb", "0.5");
|
|
|
32 |
return dojo.gfx.color.hex2rgb(hex);
|
|
|
33 |
};
|
|
|
34 |
dojo.graphics.color.rgb2hex = function (r, g, b) {
|
|
|
35 |
dojo.deprecated("dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex", "0.5");
|
|
|
36 |
return dojo.gfx.color.rgb2hex;
|
|
|
37 |
};
|
|
|
38 |
|