public function setCanvasColor(array $canvas_color) : AbstractResize
    {
        if (Helper::colorIndexValid('r', $canvas_color) === false ||
            Helper::colorIndexValid('g', $canvas_color) === false ||
            Helper::colorIndexValid('b', $canvas_color) === false
        ) {
            throw new \InvalidArgumentException(Helper::ERROR_CANVAS_COLOR_ARRAY_INVALID);
        }

        $this->canvas['color'] = $canvas_color;
    }