I'm trying to create a polygon but I dont see what Im doing wrong.
To following code I thought would create a polygon shaped like a number 1. something like this :
_*
_*
_*
_*
***
but when i run it it looks nothing like that. So my question is can I create a polygon like that shape using drawploy or do I have to draw two 4 sided polys ?
To following code I thought would create a polygon shaped like a number 1. something like this :
_*
_*
_*
_*
***
but when i run it it looks nothing like that. So my question is can I create a polygon like that shape using drawploy or do I have to draw two 4 sided polys ?
Graphics 640,480 Local angle:Int Local p:Float[8*2] p[0] = -5 p[1] = -25 p[2] = 5 p[3] = -25 p[4] = 5 p[5] = 20 p[6] = 10 p[7] = 20 p[8] = 10 p[9] = 25 p[10] = -10 p[11] = 25 p[12] = -10 p[13] = 20 p[14] = -5 p[15] = 20 While Not KeyHit(key_space) Cls angle :+ 1 If angle > 360 Then angle :- 360 End If SetOrigin 50,50 SetRotation angle DrawPoly(p) Flip Wend