for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the class {@see ColorPresets}.
*
* @see ColorPresets
*@subpackage RGBAColor
* @package AppUtils
*/
declare(strict_types=1);
namespace AppUtils\RGBAColor;
use AppUtils\RGBAColor;
* Quick access to the global color presets, as well as those that
* were added via the manager.
* @subpackage RGBAColor
* @author Sebastian Mordziol <[email protected]>
class ColorPresets
{
public static function white() : RGBAColor
return ColorFactory::createFromPreset(PresetsManager::COLOR_WHITE);
}
public static function black() : RGBAColor
return ColorFactory::createFromPreset(PresetsManager::COLOR_BLACK);
public static function transparent() : RGBAColor
return ColorFactory::createFromPreset(PresetsManager::COLOR_TRANSPARENT);
public static function custom(string $presetName) : RGBAColor
return ColorFactory::createFromPreset($presetName);