src/Marando/Color/Color.php
public static function rgb($r = 255, $g = 255, $b = 255)
    {
        // Check if values are in range.
        static::validateComp('R', $r, 0, 255);
        static::validateComp('G', $g, 0, 255);
        static::validateComp('B', $b, 0, 255);

        return new static($r, $g, $b);
    }
public static function rgb($r = 255, $g = 255, $b = 255)
    {
        // Check if values are in range.
        static::validateComp('R', $r, 0, 255);
        static::validateComp('G', $g, 0, 255);
        static::validateComp('B', $b, 0, 255);

        return new static($r, $g, $b);
    }
public static function rgb ( $ r = 255 , $ g = 255 , $ b = 255 ) { // Check if values are in range. static :: validateComp ( 'R' , $ r , 0 , 255 ) ; static :: validateComp ( 'G' , $ g , 0 , 255 ) ; static :: validateComp ( 'B' , $ b , 0 , 255 ) ; return new static ( $ r , $ g , $ b ) ; }
Creates a new Color instance from RGB components ranging from 0 to 255.

@param int $r Red, 0-255
@param int $g Green, 0-255
@param int $b Blue, 0-255

@return static
Creates a new Color instance from RGB components ranging from 0 to 255 .