src/Clio/Styling/Style.php
public function setFillColor($color) {

        // if it is null, just remember null
        if (is_null($color)) {

            // undefined
            $this->fillColor = null;
            
        // if it is an instance of a color
        } elseif ($color instanceof Color) {

            // clone it
            $this->fillColor = clone $color;

        } else
        {

            // it is something else, let the Color object sort it out
            $this->fillColor = new Color($color);

        }

        // chaining
        return $this;
    }
public function setFillColor($color) {

        // if it is null, just remember null
        if (is_null($color)) {

            // undefined
            $this->fillColor = null;
            
        // if it is an instance of a color
        } elseif ($color instanceof Color) {

            // clone it
            $this->fillColor = clone $color;

        } else
        {

            // it is something else, let the Color object sort it out
            $this->fillColor = new Color($color);

        }

        // chaining
        return $this;
    }
Set the fill color

@param Color | string | int | array $color
- Color - a Color object
- string - a W3C color index name "darkblue"
- integer - a number between 0-255 for the XTerm escape code
- array - RGB values in the format [R,G,B]
@return $this