pt:poly

Poly

Formato

poly numeric array variable
poly {x1, y1, x2, y2, x3, y3 …}

Description

Desenha um poligono. Os vertices do poligono são dados pelas coordenadas guardadas no array. O número de vertices corresponde assim ao (número de elementos do array)/2 . O poligono pode também ser definido com um Arrays inominados (lista de pares x,y em chavetas {}).

Nota

The number of points in the array argument was removed from the poly statement in version 0.9.4.

See Also

Example

# using an array
color blue
rect 0,0,300,300
color green
dim tri(1)
tri = {100, 100, 200, 200, 100, 200}
poly tri
# using an anonymous array
color blue
rect 0,0,300,300
color green
poly {100, 100, 200, 200, 100, 200}

Both programs use the poly statement to draw the following:

pt/poly.txt · Last modified: 2012/12/17 14:34 by m_santos