mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Optimize Colour Brush Pen
Use builtin Colours, Brushes, Pens where needed. They are faster.
This commit is contained in:
@@ -38,8 +38,8 @@ then these squares should be transparent.
|
||||
dc.DrawRoundedRectangle(rect, 8)
|
||||
|
||||
# some additional testing stuff
|
||||
#dc.SetPen(wx.Pen(wx.Colour(0,0,255, 196)))
|
||||
#dc.SetBrush(wx.Brush(wx.Colour(0,0,255, 64)))
|
||||
#dc.SetPen(wx.Pen(wx.Colour(0, 0, 255, 196)))
|
||||
#dc.SetBrush(wx.Brush(wx.Colour(0, 0, 255, 64)))
|
||||
#dc.DrawCircle(50, 275, 25)
|
||||
#dc.DrawEllipse(100, 275, 75, 50)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user