Notifications
Clear all

[Closed] Viewport drawing: gw.wpolygon

Anyone know why the polygon viewport drawing methods yield no result? The polyline methods work fine, but I’m getting nada with the polygon methods. Essentially I just want to make a black bar lay across the screen, and a solid black viewport drawn polygon seems like the best choice.

     Just going to paste the polygon code from the help file:

  gw.hPolygon #([200,100,16], [280,100,8], [250,200,4]) \
   #(red, blue, green) \
   #([1.0,.5,0], [0.5,0.5,0], [0,0,0.5])
    [left]
  [/left]
     
     I saw another thread on this same topic in the past, but it wasn't resolved as to why the polygon methods weren't showing up, if anyone knows that'd be great!
2 Replies

Hi,

These methods seem to give differeing results on different display cards and drivers. I find them a bit un reliable for professional use.

Don’t forget to update the screen after setting your polygon either!

gw.enlargeUpdateRect #whole
gw.updateScreen()

J.

Alright, that’s what I thought too! Thanks jman