I'm having some problems with the built-in DrawPoly method.. as you can see from the code example below, there is a large ugly white triangle (caused by overlapping polygons) that shouldn't be there.
Does anyone have any alternatives to DrawPoly that produce more reliable results?
Thanks,
Chris
Graphics 800, 600 SetBlend alphablend While Not KeyHit( KEY_ESCAPE ) = True Cls Local poly:Float[] = [0.0, 200.0, 0.0, 0.0, 200.0, 0.0, 200.0, 100.0, 100.0, 100.0, 100.0, 200.0] SetOrigin 400, 300 SetColor 255, 255, 255 SetAlpha 0.5 DrawPoly poly SetColor 255, 0, 0 SetAlpha 1.0 For i = 0 Until poly.length Step 2 DrawOval poly[i] - 2, poly[i+1] - 2, 4, 4 Next Flip Wend End
Does anyone have any alternatives to DrawPoly that produce more reliable results?
Thanks,
Chris