dojox.gfx3d.gradient
dojo.require("dojox.gfx3d.gradient");
defined in dojox/gfx3d/gradient.js
calculate a cylindrical gradient
Usage
function (/*dojox.gfx3d.lighting.Model*/ model, /*Object*/ material, /*Object*/ center, /*Number*/ radius, /*Number*/ from, /*Number*/ to, /*dojox.gfx3d.Matrix3D*/ matrix) (view source)
parameter | type | description |
---|---|---|
model | dojox.gfx3d.lighting.Model | color model |
material | Object | defines visual properties |
center | Object | center of the cylinder's bottom |
radius | Number | radius of the cylinder |
from | Number | from position in radians |
to | Number | from position in radians |
matrix | dojox.gfx3d.Matrix3D | the cumulative transformation matrix tolerance: Number: tolerable diffirence in colors between gradient steps |