I am working with the wxOGL demo, and I have tweaked the Daimond shape
to draw a hexagon. What I need to so is set RGB values instead of
wxBlack and wxLIGHT_GREY_BRUSH.
Thanks
self.MyAddShape(DiamondShape(90, 90), plotx, ploty, wxPen(wxBLACK, 3,
wxDOT), wxLIGHT_GREY_BRUSH, "")
class DiamondShape(wxPolygonShape):
def __init__(self, w=0.0, h=0.0):
wxPolygonShape.__init__(self)
if w == 0.0:
w = 60.0
if h == 0.0:
h = 60.0
points = [ (30,15,),
(15,45),
(30,75),
(60,75),
(75,45),
(60,15),
]
self.Create(points)
···
--
Mike Wagman <mwagman@charter.net>