Tag Archives: poly

BASIC-256 3D Polygons

Here it is:


graphsize 600,600
x=300
y=300
h=50 # Height
color rgb(0,50,100)
poly {(10*n),y-h,(10*n)+10,y+5-h,(10*n)+20,y-h,(10*n)+10,y-5-h}
color rgb(0,30,60)
poly {(10*n),y-h,(10*n)+10,y+5-h,(10*n)+10,y,(10*n),y-5}
color rgb(0,75,150)
poly {(10*n)+10,y+5-h,(10*n)+10,y,(10*n)+20,y-5,(10*n)+20,y-h}
next n
refresh
t+=0.1
end while