VisionProfile

Common color vision deficiency profiles.

Constants

case Protanopia

/** Red-absent dichromacy. */

case Deuteranopia

/** Green-absent dichromacy. */

case Tritanopia

/** Blue-absent dichromacy. */

case Protanomaly

/** Reduced red sensitivity. */

case Deuteranomaly

/** Reduced green sensitivity (most common). */

case Tritanomaly

/** Reduced blue sensitivity. */

case Monochromacy

/** Achromatic vision (no color discrimination). */

Methods

public static function commonlyTested(): array

Get the most commonly tested vision deficiency profiles.

public function description(): string

Get a human-readable description of the profile.

public function isSevere(): bool

Check if the deficiency is considered severe (full absence or monochromacy).

public function populationShare(): float

Get the estimated percentage of the population with this profile.