Graphics Programs Reference
In-Depth Information
Figure 9.11 Sample screen from 9_2_extrusionDONE.swf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// data for creating an extruded V shape
// define the thickness of the extrusion
var thickness:Number = 30;
// define the coordinates of the 2D shape
// the end point and starting point
// should not be the same
points = new Array();
points[0]= { x:-80, y:120 }
points[1]= { x:-20, y:-40 }
points[2]= { x: 20, y:-40 }
points[3]= { x: 80, y:120 }
points[4]= { x: 40, y:120 }
points[5]= { x: 0, y: 0 }
points[6]= { x:-40, y:120 }
extruded V letterform. The data has already been created for you and is shown here
so that you can see what it looks like.
Search WWH ::




Custom Search