/** * Creator constructor. * * @param bool $limitUpscaling * @param Color $background */ public function __construct($limitUpscaling = true, Color $background = null) { $this->limitUpscaling = (bool) $limitUpscaling; $this->background = $background ?: Color::white(); }