PaletteFixerInterface
InterfaceInterface for palette fixers that correct issues in color palettes.
Fixers analyze color palettes and apply corrections to improve specific
qualities such as accessibility (contrast) or color theory (harmony).
Methods
public function analyze(ColorPaletteInterface $palette): array
Analyze the palette without making corrections.
Returns information about detected issues and their severity.
Parameters
| Name | Type | Default |
|---|---|---|
$palette |
ColorPaletteInterface | - |
public function fix(ColorPaletteInterface $palette, array $options): ColorPaletteInterface
Analyze and fix issues in the given palette.
Parameters
| Name | Type | Default |
|---|---|---|
$palette |
ColorPaletteInterface | - |
$options |
array | [] |