Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1372 Rev 1422
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");
13
dojo.provide("dojo.graphics.color");
12
dojo.require("dojo.gfx.color");
14
dojo.require("dojo.gfx.color");
13
dojo.deprecated("dojo.graphics.color.Color is now dojo.gfx.color.Color.", "0.5");
15
dojo.deprecated("dojo.graphics.color.Color is now dojo.gfx.color.Color.", "0.5");
14
dojo.graphics.color.Color = dojo.gfx.color.Color;
16
dojo.graphics.color.Color = dojo.gfx.color.Color;
15
dojo.graphics.color.named = dojo.gfx.color.named;
17
dojo.graphics.color.named = dojo.gfx.color.named;
16
dojo.graphics.color.blend = function (a, b, weight) {
18
dojo.graphics.color.blend = function (a, b, weight) {
17
	dojo.deprecated("dojo.graphics.color.blend is now dojo.gfx.color.blend", "0.5");
19
	dojo.deprecated("dojo.graphics.color.blend is now dojo.gfx.color.blend", "0.5");
18
	return dojo.gfx.color.blend(a, b, weight);
20
	return dojo.gfx.color.blend(a, b, weight);
19
};
21
};
20
dojo.graphics.color.blendHex = function (a, b, weight) {
22
dojo.graphics.color.blendHex = function (a, b, weight) {
21
	dojo.deprecated("dojo.graphics.color.blendHex is now dojo.gfx.color.blendHex", "0.5");
23
	dojo.deprecated("dojo.graphics.color.blendHex is now dojo.gfx.color.blendHex", "0.5");
22
	return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a), dojo.gfx.color.hex2rgb(b), weight));
24
	return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a), dojo.gfx.color.hex2rgb(b), weight));
23
};
25
};
24
dojo.graphics.color.extractRGB = function (color) {
26
dojo.graphics.color.extractRGB = function (color) {
25
	dojo.deprecated("dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB", "0.5");
27
	dojo.deprecated("dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB", "0.5");
26
	return dojo.gfx.color.extractRGB(color);
28
	return dojo.gfx.color.extractRGB(color);
27
};
29
};
28
dojo.graphics.color.hex2rgb = function (hex) {
30
dojo.graphics.color.hex2rgb = function (hex) {
29
	dojo.deprecated("dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb", "0.5");
31
	dojo.deprecated("dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb", "0.5");
30
	return dojo.gfx.color.hex2rgb(hex);
32
	return dojo.gfx.color.hex2rgb(hex);
31
};
33
};
32
dojo.graphics.color.rgb2hex = function (r, g, b) {
34
dojo.graphics.color.rgb2hex = function (r, g, b) {
33
	dojo.deprecated("dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex", "0.5");
35
	dojo.deprecated("dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex", "0.5");
34
	return dojo.gfx.color.rgb2hex;
36
	return dojo.gfx.color.rgb2hex;
35
};
37
};
36
 
38