- Author: Nicola Asuni <info@tecnick.com>
- Copyright: 2015-2026 Nicola Asuni - Tecnick.com LTD
- License: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- Source: https://github.com/tecnickcom/tc-lib-color
Com\Tecnick\Color
Classes:
- ComponentNormalizer: Scales a parsed CSS component value into the [0..1] range used by the color models.
- Css: Css Color class Parses the CSS and Acrobat JavaScript color notations.
- Exception: Custom Exception class Raised for an invalid input condition: an unparsable color string, an unknown color or spot color name, a PDF resource that cannot be referenced.
- Model: Color Model class
- Pdf: PDF Color class Extension points: getPdfColor() and getColorObject().
- Spot: Spot Color class Extension points: getSpotColor() and the protected resolveSpotColorData().
- UnknownComponentException: Raised when a color model is given a component name it does not define.
- Web: Web Color class Extension point: getColorObj().
Interfaces:
- ColorParserInterface: Parses a color string into a color model.
- ExceptionInterface: Implemented by every exception this library raises: Exception and UnknownComponentException.
- PdfColorWriterInterface: Writes the PDF and Acrobat JavaScript color forms.
- SpotRegistryInterface: Registers spot colors and writes them as PDF Separation objects.
Enums:
- ColorModelType: Backed enum for the color model type.
Com\Tecnick\Color\Model
Classes:
- Cmyk: CMYK Color Model class
- Gray: Gray Color Model class
- Hsl: HSL Color Model class
- Lab: CIE Lab Color Model class
- Rgb: RGB Color Model class
Interfaces:
- Template: Color Model Interface