Example #1
0
        return null;
    }
    function __set($key, $value)
    {
        switch ($key) {
            case 'red':
            case 'r':
                $this->red = $this->bounds($value);
                break;
            case 'green':
            case 'g':
                $this->green = $this->bounds($value);
                break;
            case 'blue':
            case 'b':
                $this->blue = $this->bounds($value);
                break;
            case 'alpha':
            case 'a':
                $this->alpha = 255;
        }
    }
}
function pantone($pms)
{
    return new PantoneColor($pms);
}
$fn = base::sysPath() . 'lepton/graphics/colorspaces/pantone.sd';
if (file_exists($fn)) {
    globals::set('pantonescale', unserialize(file_get_contents($fn)));
}