Set RGB input range.

@param inRGB Range.
555298
public void setInRGB(IntRange inRGB) {
        this.inRed = inRGB;
        this.inGreen = inRGB;
        this.inBlue = inRGB;

        CalculateMap(inRGB, outRed, mapRed);
        CalculateMap(inRGB, outGreen, mapGreen);
        CalculateMap(inRGB, outBlue, mapBlue);
    }
1171157
def set_fill_color(self,r,g=-1,b=-1):
        ""
        if((r==0 and g==0 and b==0) or g==-1):
            self.fill_color=sprintf('%.3f g',r/255.0)
        else:
            self.fill_color=sprintf('%.3f %.3f %.3f rg',r/255.0,g/255.0,b/255.0)
        self.color_flag=(self.fill_color!=self.text_color)
        if(self.page>0):
            self._out(self.fill_color)
679272
public void setArrowColor(@ColorInt int color) {
    arrowColor = color;
    arrowColorDisabled = Utils.lighter(arrowColor, 0.8f);
    if (arrowDrawable != null) {
      arrowDrawable.setColorFilter(arrowColor, PorterDuff.Mode.SRC_IN);
    }
  }
121263
public void setEmissive(float red, float green, float blue){
        emissive[0] = red;
        emissive[1] = green;
        emissive[2] = blue;
        Em = true;
    }
123651
def _hex_to_rgb(color):
    
    if color[0] == '#':
        color = color[1:]
    if len(color) == 3:
        color = color[0] * 2 + color[1] * 2 + color[2] * 2
    if len(color) != 6:
        raise ValueError('Input #{0} is not in #RRGGBB format'.format(color))
    return [int(n, 16) for n in (color[:2], color[2:4], color[4:])]
1043114
def set_rgb_points(self, rgb_points, *args):
        """"""
        if not args:
            self.rgb_points = rgb_points
        # separate tuples
        elif len(args) == 2:
            self.rgb_points = (rgb_points, args[0], args[1])
        # separate numbers
        elif len(args) == 5:
            self.rgb_points = ((rgb_points, args[0]),
                          (args[1], args[2]),
                          (args[3], args[4]))
293017
public void setNonStrokingColor (final double g) throws IOException
  {
    if (_isOutsideOneInterval (g))
    {
      throw new IllegalArgumentException ("Parameter must be within 0..1, but is " + g);
    }
    writeOperand ((float) g);
    writeOperator ((byte) 'g');
  }
1086124
public void setStrokingColor (final double g) throws IOException
  {
    if (_isOutsideOneInterval (g))
    {
      throw new IllegalArgumentException ("Parameter must be within 0..1, but is " + g);
    }
    writeOperand ((float) g);
    writeOperator ((byte) 'G');
  }
1209338
public static RgbaColor fromRgb(String rgb) {
        if (rgb.length() == 0) return getDefaultColor();

        String[] parts = getRgbParts(rgb).split(",");
        if (parts.length == 3) {
            return new RgbaColor(parseInt(parts[0]),
                                 parseInt(parts[1]),
                                 parseInt(parts[2]));
        }
        else {
            return getDefaultColor();
        }
    }
950604
def rgb2rgba(rgb):
    """"""
    rgba = []
    for i in range(0, len(rgb), 3):
        rgba += rgb[i:i+3]
        rgba.append(255)

    return rgba
659663
public function setRgb($red, $green, $blue)
    {
        $this->red = (int) $red;
        $this->green = (int) $green;
        $this->blue = (int) $blue;
    }
1098913
public void setColorRange(int firstIndex, int lastIndex, int color) {
		for (int i = firstIndex; i <= lastIndex; i++)
			map[i] = color;
	}
686634
def setPixelColorRGB(self, n, red, green, blue):
        
        self.setPixelColor(n, Color(red, green, blue))
345691
private void HelperRGB(float red, float green, float blue) {
    	PdfXConformanceImp.checkPDFXConformance(writer, PdfXConformanceImp.PDFXKEY_RGB, null);
        if (red < 0)
            red = 0.0f;
        else if (red > 1.0f)
            red = 1.0f;
        if (green < 0)
            green = 0.0f;
        else if (green > 1.0f)
            green = 1.0f;
        if (blue < 0)
            blue = 0.0f;
        else if (blue > 1.0f)
            blue = 1.0f;
        content.append(red).append(' ').append(green).append(' ').append(blue);
    }
42237
public void setRange(final double RANGE) {
        this.range = RANGE;
        checkForBlips();
        init(getInnerBounds().width, getInnerBounds().height);
        repaint();
    }
1034959
def set_bg(self, r, g, b):
        
        self.img_bg = (r, g, b)
        self.redraw(whence=0)
489181
public static void rgbToXyz( int r , int g , int b , double xyz[] ) {
		srgbToXyz(r/255.0,g/255.0,b/255.0,xyz);
	}