Files
RCBASIC4/doc/files/poly.txt
2026-02-26 15:33:51 -06:00

20 lines
312 B
Plaintext

#title Poly [RCBasic Doc]
#header Sub Poly(n, ByRef x, ByRef y)
Draws a polygon
#list ul
#li n - Number of points in the polygon
#li x, y - Array where the points are stored
#/list
#code
Dim x[3], y[3]
x[0] = 50 : y[0] = 50
x[1] = 90 : y[1] = 90
x[2] = 10 : y[1] = 90
Poly(3, x, y) 'Draws a triangle
#/code