Skip to content
Features Documentation Colors Tools Playground News About

↑↓ navigate · ↵ open · esc close

Overview Getting Started Guide Recipes API Reference

phpcolor/src

Cache
ConversionCache.php
Colorimetry
Adaptation
Adapt.php Bradford.php CAT16.php
Gamut.php Illuminant.php Matrices.php Observer.php ReferenceWhite.php WhitePoint.php
Contrast
ApcaContrast.php ColorContrast.php ContrastSolver.php WcagLevel.php
Css
Exception
CssResolutionException.php
CalcExpressionEvaluator.php ColorMix.php ColorVar.php CssColor.php CssColorParser.php CssColors.php CssColorSpaces.php CssContext.php CssResolvableInterface.php CurrentColor.php LightDarkColor.php RelativeColor.php ResolvedColor.php
Distance
Ciede2000.php Cmc.php ColorDistance.php ColorDistanceInterface.php DeltaE94.php
Exception
ColorExceptionInterface.php InvalidArgumentException.php InvalidColorException.php InvalidColorSpaceException.php ParseException.php UnsupportedColorSpaceException.php
Gradient
AbstractGradient.php ConicGradient.php Gradient.php GradientBuilder.php GradientInterface.php GradientStop.php InterpolationSpace.php LinearGradient.php RadialGradient.php RadialShape.php RadialSize.php
Palette
Fixer
ContrastFixer.php HarmonyFixer.php PaletteFixerInterface.php ScaleFixer.php
Harmony
HarmonyDetector.php HarmonyGenerator.php HarmonyPattern.php
Transformer
CallableColorPaletteTransformer.php ColorPaletteTransformerInterface.php DarkModeColorPaletteTransformer.php LightModeColorPaletteTransformer.php
ColorPalette.php ColorPaletteBuilder.php ColorPaletteInterface.php
Parser
ColorParser.php ParserUtils.php
Space
ColorSpaces.php
Vision
ColorVisionSimulator.php VisionProfile.php VisionSimulatorInterface.php
A98RgbColor.php AbstractColor.php CmykColor.php Color.php ColorInterface.php DisplayP3Color.php HwbColor.php LabColor.php LchColor.php LinearSrgbColor.php OklabColor.php OklchColor.php ProPhotoColor.php Rec2020Color.php SrgbColor.php XyzColor.php

API Reference

Generated from the installed library. Color is the facade: factory methods plus high-level parsing, mixing, and analysis.

Select a class in the left column to browse its constants, methods, and signatures.

Useful API entry points

PhpColor\Color Color Main entry point for the PHPColor library. → PhpColor\Color ColorInterface Public contract for color value objects. → PhpColor\Color\Palette ColorPaletteInterface Public contract for color palette value objects. → PhpColor\Color\Distance ColorDistanceInterface Interface for color distance calculation algorithms. → PhpColor\Color\Vision VisionSimulatorInterface Interface for color vision deficiency simulators. →
PHPColor © 2024-2026 Simon AndrĂ© · All Rights Reserved
Legal Privacy Sitemap