parameters: (self)
docstring: Actual implementation of the widget's drawing. We simply draw
          from value 0.0 to value 1.0 in HSV.
docstring_summary: Actual implementation of the widget's drawing. We simply draw
          from value 0.0 to value 1.0 in HSV.
docstring_tokens: Actual implementation of the widget s drawing . We simply draw from value 0 . 0 to value 1 . 0 in HSV .
function: def DrawBuffer(self):
          """Actual implementation of the widget's drawing. We simply draw
          from value 0.0 to value 1.0 in HSV."""
          if self.base_colour is None:
              return
  
          target_red = self.base_colour.Red()
          target_green = self.base_colour.Green()
          target_blue = self.base_colour.Blue()
  
          h,s,v = colorsys.rgb_to_hsv(target_red / 255.0, target_green / 255.0,
                                      target_blue / 255.0)
          v = 1.0
          vstep = 1.0 / self.HEIGHT
          for y_pos in range(0, self.HEIGHT):
              r,g,b = [c * 255.0 for c in colorsys.hsv_to_rgb(h,s,v)]
              colour = wx.Colour(int(r), int(g), int(b))
              self.buffer.SetPen(wx.Pen(colour, 1, wx.SOLID))
              self.buffer.DrawRectangle(0, y_pos, 15, 1)
              v = v - vstep
function_tokens: def DrawBuffer ( self ) : if self . base_colour is None : return target_red = self . base_colour . Red ( ) target_green = self . base_colour . Green ( ) target_blue = self . base_colour . Blue ( ) h , s , v = colorsys . rgb_to_hsv ( target_red / 255.0 , target_green / 255.0 , target_blue / 255.0 ) v = 1.0 vstep = 1.0 / self . HEIGHT for y_pos in range ( 0 , self . HEIGHT ) : r , g , b = [ c * 255.0 for c in colorsys . hsv_to_rgb ( h , s , v ) ] colour = wx . Colour ( int ( r ) , int ( g ) , int ( b ) ) self . buffer . SetPen ( wx . Pen ( colour , 1 , wx . SOLID ) ) self . buffer . DrawRectangle ( 0 , y_pos , 15 , 1 ) v = v - vstep