dojo.colorFromArray
<script src="../../js/dojo.js"></script>
defined in dojo/_base/Color.js
builds a color from 1, 2, 3, or 4 element array
Usage
parameter | type | description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a | Array | |||||||||||||||||||||||||||||||
obj | dojo.Color | Optional. 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
|