public static function fromRgb($red, $green, $blue, $alpha = 255)
    {
        $color = new Color();
        $color->r = $red;
        $color->g = $green;
        $color->b = $blue;
        $color->a = $alpha;
        return $color;
    }