dojo.colorFromHex
<script src="../../js/dojo.js"></script>
defined in dojo/_base/Color.js
converts a hex string with a '#' prefix to a color object. Supports 12-bit #rgb shorthand.
Usage
parameter | type | description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
color | String | |||||||||||||||||||||||||||||||
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
|