7.6

Table Of Contents
Measure values representing the angles, in degrees, of both segments of the pie slice. Values increase counter clock wise,
with 0 extending right from the center of the circle.
Code Sample Example
This example draws a whole pie chart with a shadow effect.
Example
setfillcolor([0,0,0,50]) %Set shadow colour to gray
pie(1.5,1.5,1,60,290) %Create shadow for first slice
translate(0.2,0.2) %Separate shadows
pie(1.5,1.5,1,290,420) %Create shadow for second slice
fill() %Display shadows
translate(-0.3, 0.3) %Offset chart from its shadow
setstrokecolor([0,0,100,0]) %Set pen colour to yellow
setfillcolor([0,100,100,0]) %Set fill colour to red
pie(1.5,1.5,1,60,290) %Create first slice
strokeandfill() %Draw first slice
translate(0.2,0.2) %Separate slices
setfillcolor([100,100,0,0]) %Set fill colour to blue
pie(1.5,1.5,1,290,420) %Create second slice
strokeandfill() %Draw second slice
Put (procedure)
Assigns a value to an element of an array.
Syntax
put( &array, index, value )
Arguments
&array
Array variable containing the element whose value you want to change.
index
Integer value representing the position of the element in the array.
value
©2010 Objectif Lune Inc - 432 -