code: def color_pack2rgb(packed):
      
  
      r = packed & 255
      g = (packed & (255 << 8)) >> 8
      b = (packed & (255 << 16)) >> 16
  
      return r, g, b
docs: Returns r, g, b tuple from packed wx.ColourGetRGB value