drawpoly.bmx 271 B

1234567891011121314151617
  1. ' drawpoly.bmx
  2. ' draws a simple triangle using the
  3. ' DrawPoly command and an array of
  4. ' floats listed as 3 pairs of x,y
  5. ' coordinates
  6. SuperStrict
  7. Local tri#[]=[0.0,0.0,100.0,100.0,0.0,100.0]
  8. Graphics 640,480
  9. While Not KeyHit(KEY_ESCAPE)
  10. Cls
  11. DrawPoly tri
  12. Flip
  13. Wend