dojo.Color
<script src="../../js/dojo.js"></script>
defined in dojo/_base/Color.js
takes a named string, hex string, array of rgb or rgba values, an object with r, g, b, and a properties, or another dojo.Color object
parameter | type | description |
---|---|---|
color | Array|String|Object |
FunctionsBack to top

makes sure that the object has correct attributes
takes a named string, hex string, array of rgb or rgba values, an object with r, g, b, and a properties, or another dojo.Color object

returns a css color string in hexadecimal representation

returns 3 component array of rgb values

returns a 4 component array of rgba values

returns a visual representation of the color
