Constructordojo.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

Usage

function (/*Array|String|Object*/ color) (view source)
parametertypedescription
colorArray|String|Object 

Jump to PropertiesFunctionsBack 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
FunctiontoCss(includeAlpha: Boolean?)
returns a css color string in rgb(a) representation
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
Function_set(r, g, b, a)

Jump to FunctionsPropertiesBack to top