dojo.blendColors
<script src="../../js/dojo.js"></script>
defined in dojo/_base/Color.js
blend colors end and start with weight from 0 to 1, 0.5 being a 50/50 blend, can reuse a previously allocated dojo.Color object for the result
Usage
function (/*dojo.Color*/ start, /*dojo.Color*/ end, /*Number*/ weight, /*dojo.Color?*/ obj) (view source)
parameter | type | description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
start | dojo.Color | 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
| ||||||||||||||||||||||||||||||
end | dojo.Color | 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
| ||||||||||||||||||||||||||||||
weight | Number | |||||||||||||||||||||||||||||||
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
|