Set the minimum value for the background color range

@api
@param float $red   Red color value
@param float $green Green color value
@param float $blue  Blue color value
@return static
496215
public function setCloudsMinimumColor($red, $green, $blue)
    {
        $this->cloudsMinimumColor = floatval($red) . ' ' . floatval($green) . ' ' . floatval($blue);
        return $this;
    }
29323
@SuppressWarnings({ "checkstyle:magicnumber", "static-method" })
	@Pure
	public Color rgb(int color) {
		final int red = (color & 0x00FF0000) >> 16;
		final int green = (color & 0x0000FF00) >> 8;
		final int blue = color & 0x000000FF;
		return Color.rgb(red, green, blue);
	}
461417
public function setBGColor($level, ForegroundColors $color)
    {
        if (static::$foregroundColorMap === null) {
            $this->resetBGColor();
        }
        $this->checkLevel($level);
        static::$foregroundColorMap[$level] = $color;
        return $this;
    }
807207
public function setSelfIlluminationColor($red, $green, $blue)
    {
        $this->selfIlluminationColor = floatval($red) . ' ' . floatval($green) . ' ' . floatval($blue);
        return $this;
    }
1171214
public function setColor( $key, $r, $g, $b, $alpha = 0, $range = 0 )
	{
		#	Set color
	
		if( !in_array( $key, array( 'background', 'background_text', 'front_text' ) ) )
			throw new CaptchaException( __METHOD__ . '($key, ) must be one of( background, background_text, front_text ).' );
		
		if( !is_numeric( $r ) || !is_numeric( $g ) || !is_numeric( $b ) || !is_numeric( $alpha ) || !is_numeric( $range ) )
			throw new CaptchaException( __METHOD__ . '( , $args ) second argument and the followers must be numeric values.' );

		# set values
		$property = ( $key == 'background' ) ? '_image_info' : '_' . $key;


		$this->{$property}['color']				= array( $r, $g, $b, $alpha );
		$this->{$property}['color']['range'] 	= $range;
		
		return $this;
		# Method End
	}
831387
public function setColor($color)
	{
		if ( ! $this->isValidColor($color))
		{
			throw new \InvalidArgumentException('Invalid color format.');
		}
		
		$this->color = (string) $color;
		
		return $this;
	}
918042
public function setLight0Color($red, $green, $blue)
    {
        $this->light0Color = floatval($red) . ' ' . floatval($green) . ' ' . floatval($blue);
        return $this;
    }
659663
public function setRgb($red, $green, $blue)
    {
        $this->red = (int) $red;
        $this->green = (int) $green;
        $this->blue = (int) $blue;
    }
1308532
def set_colour(self, r, g, b):
        
        if not 0 <= r <= 255:
            raise ValueError("The value for red needs to be between 0 and 255.")
        if not 0 <= g <= 255:
            raise ValueError("The value for green needs to be between 0 and 255.")
        if not 0 <= b <= 255:
            raise ValueError("The value for blue needs to be between 0 and 255.")

        #print(BulbDevice)
        hexvalue = BulbDevice._rgb_to_hexvalue(r, g, b)

        payload = self.generate_payload(SET, {
            self.DPS_INDEX_MODE: self.DPS_MODE_COLOUR,
            self.DPS_INDEX_COLOUR: hexvalue})
        data = self._send_receive(payload)
        return data
1211437
public function setLightBallColor($red, $green, $blue)
    {
        $this->lightBallColor = floatval($red) . ' ' . floatval($green) . ' ' . floatval($blue);
        return $this;
    }
517352
public function getLuminance($red, $green, $blue)
    {
        switch ($this->luminanceStrategy) {
            case 1:
                $luminance = ($red * 0.2126 + $green * 0.7152 + $blue * 0.0722) / 255;
                break;
            case 2:
                $luminance = ($red * 0.299 + $green * 0.587 + $blue * 0.114) / 255;
                break;
            case 3:
                $luminance = sqrt(0.299 * pow($red, 2) + 0.587 * pow($green, 2) + 0.114 * pow($blue, 2)) / 255;
                break;
            case 0:
            default:
                $luminance = ($red + $green + $blue) / (255 * 3);
        }

        return $luminance;
    }
823915
public function setColor($color)
    {
        if (null === $color) {
            return $this;
        }

        $this->color = $this->convertColor($color);

        return $this;
    }
847379
public static Color fromRGB(final int red, final int green, final int blue) {
        if (ColorHelper.helper == null)
            ColorHelper.helper = new ColorHelper();
        return ColorHelper.helper.getFromRGB(red, green, blue);
    }
834809
public function toHSL($red, $green, $blue)
    {
        $min = min($red, $green, $blue);
        $max = max($red, $green, $blue);

        $l = $min + $max;
        $d = $max - $min;

        if ((int) $d === 0) {
            $h = $s = 0;
        } else {
            if ($l < 255) {
                $s = $d / $l;
            } else {
                $s = $d / (510 - $l);
            }

            if ($red == $max) {
                $h = 60 * ($green - $blue) / $d;
            } elseif ($green == $max) {
                $h = 60 * ($blue - $red) / $d + 120;
            } elseif ($blue == $max) {
                $h = 60 * ($red - $green) / $d + 240;
            }
        }

        return [Type::T_HSL, fmod($h, 360), $s * 100, $l / 5.1];
    }
381442
public static void float2rgbe(byte[] rgbe, float red, float green, float blue) {
        float v;
        int e;

        v = red;
        if (green > v) {
            v = green;
        }
        if (blue > v) {
            v = blue;
        }
        if (v < 1e-32f) {
            rgbe[0] = rgbe[1] = rgbe[2] = rgbe[3] = 0;
        }
        else {
            FracExp fe = frexp(v);
            v = (float) (fe.getFraction() * 256.0 / v);
            rgbe[0] = (byte) (red * v);
            rgbe[1] = (byte) (green * v);
            rgbe[2] = (byte) (blue * v);
            rgbe[3] = (byte) (fe.getExponent() + 128);
        }
    }
1010998
public void setColor(float red, float green, float blue) {
		setRed(red);
		setGreen(green);
		setBlue(blue);
	}
830947
public function backColor($r, $g, $b) {
        $this->renderer->setBackgroundColor(new Rgb($r, $g, $b));

        return $this;
    }