The following examples show gradients in which the
createGradientBox()
width = 100;
height = 100;
rotation = 0;
tx = 0;
ty = 0;
width = 100;
height = 100;
rotation = Math.PI/4; // 45°
tx = 0;
ty = 0;
width = 100;
height = 100;
rotation = Math.PI/2; // 90°
tx = 0;
ty = 0;
426
Working with Geometry
method differs as indicated, but all other settings stay the same:
parameter of the
rotation