Functiondojox.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)
parametertypedescription
modeldojox.gfx3d.lighting.Modelcolor model
fieldtypedescription
.ambient 
.ambient.a 
.constantFunction 
.incident 
.lights 
.matteFunction 
.metalFunction 
.nprFunction 
.npr_alpha 
.npr_beta 
.npr_cool 
.npr_scale 
.npr_warm 
.plasticFunction 
.specular 
.specular.a 
materialObjectdefines visual properties
centerObjectcenter of the cylinder's bottom
radiusNumberradius of the cylinder
fromNumberfrom position in radians
toNumberfrom position in radians
matrixdojox.gfx3d.Matrix3Dthe cumulative transformation matrix tolerance: Number: tolerable diffirence in colors between gradient steps