VisionSimulatorInterface

Interface

Interface for color vision deficiency simulators.

Implementations of this interface simulate how colors appear to people with
different types of color vision deficiencies (color blindness).

Methods

public function simulate(ColorInterface $color, VisionProfile $profile): ColorInterface

Simulate a color vision deficiency for a given color.

Parameters
NameTypeDefault
$color ColorInterface -
$profile VisionProfile null