parameters: (self)
docstring: Converts a HSV triplet into a RGB triplet.
docstring_summary: Converts a HSV triplet into a RGB triplet.
docstring_tokens: Converts a HSV triplet into a RGB triplet .
function: def ToRGB(self):
          """ Converts a HSV triplet into a RGB triplet. """
      
          maxVal = self.v
          delta = (maxVal*self.s)/255.0
          minVal = maxVal - delta
  
          hue = float(self.h)
  
          if self.h > 300 or self.h <= 60:
          
              self.r = maxVal
              
              if self.h > 300:
              
                  self.g = int(minVal)
                  hue = (hue - 360.0)/60.0
                  self.b = int(-(hue*delta - minVal))
              
              else:
              
                  self.b = int(minVal)
                  hue = hue/60.0
                  self.g = int(hue*delta + minVal)
              
          elif self.h > 60 and self.h < 180:
          
              self.g = int(maxVal)
              
              if self.h < 120:
              
                  self.b = int(minVal)
                  hue = (hue/60.0 - 2.0)*delta
                  self.r = int(minVal - hue)
              
              else:
              
                  self.r = int(minVal)
                  hue = (hue/60.0 - 2.0)*delta
                  self.b = int(minVal + hue)
              
          
          else:
          
              self.b = int(maxVal)
              
              if self.h < 240:
              
                  self.r = int(minVal)
                  hue = (hue/60.0 - 4.0)*delta
                  self.g = int(minVal - hue)
              
              else:
              
                  self.g = int(minVal)
                  hue = (hue/60.0 - 4.0)*delta
                  self.r = int(minVal + hue)
function_tokens: def ToRGB ( self ) : maxVal = self . v delta = ( maxVal * self . s ) / 255.0 minVal = maxVal - delta hue = float ( self . h ) if self . h > 300 or self . h <= 60 : self . r = maxVal if self . h > 300 : self . g = int ( minVal ) hue = ( hue - 360.0 ) / 60.0 self . b = int ( - ( hue * delta - minVal ) ) else : self . b = int ( minVal ) hue = hue / 60.0 self . g = int ( hue * delta + minVal ) elif self . h > 60 and self . h < 180 : self . g = int ( maxVal ) if self . h < 120 : self . b = int ( minVal ) hue = ( hue / 60.0 - 2.0 ) * delta self . r = int ( minVal - hue ) else : self . r = int ( minVal ) hue = ( hue / 60.0 - 2.0 ) * delta self . b = int ( minVal + hue ) else : self . b = int ( maxVal ) if self . h < 240 : self . r = int ( minVal ) hue = ( hue / 60.0 - 4.0 ) * delta self . g = int ( minVal - hue ) else : self . g = int ( minVal ) hue = ( hue / 60.0 - 4.0 ) * delta self . r = int ( minVal + hue )