class Palette extends QualifierMultiValue

Defines the custom colors to use when resizing using content-aware padding.

Learn more: Content-aware padding with custom color palette

Methods

colors(array ...$colors)

Adds colors to the palette.

Details

colors(array ...$colors)

Adds colors to the palette.

Parameters

Name Type Description
...$colors array The colors. Can be RGB, HEX, named color, etc

Constants

VALUE_DELIMITER

MIN_ARGUMENTS