Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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