Color from hex value based on existing value
<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/"
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script>
var c1 = new dojo.Color([255, 0, 0]);
alert(c1);
dojo.colorFromHex("#0000ff", c1);
alert(c1);
</script>
</head>
<body></body>
</html>
Dojo-toolkit.zip( 3,849 k)Related examples in the same category