I'm trying to use some named colours, but I am not getting the same R,G,B results as those from "ColourDB" demo.
My test program is below.
ColourName My Test ColourDB
Violet Red 204,50,153 208,32,144
Sienna 142,107,35 160,82,45
Goldenrod 219,219,112 218,165,32
Slate Blue 0,127,255 106,90,205
Steel Blue 35,107,142 70,130,180
Wheat 216,216,191 245,222,179
Tan 219,147,112 210,180,140
Firebrick 142,35,35 178,34,34
Orchid 219,112,219 218,112,214 Very Close Colour
Spring Green 0,255,127 Is Spring Green 1
The "ColourDB" colours are correct to my eye, but my test colours look terrible.
I have no idea what is likely to be wrong.
import wx
class ColourTest(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title = title, size=(500, 350))
panel1 = wx.Panel(self)
self.SetBackgroundColour('sienna')
if __name__ == '__main__':
app = wx.App(0)
frame = ColourTest(None, title="Colour Test")
frame.Show()
app.MainLoop()