Skip to content

Handling of color based methods, such as conversion, chromatic adaptation, difference measurement.

Notifications You must be signed in to change notification settings

tei187/ColorTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COLOR TOOLS

Description

Set of classes used to convert colors and calculate color difference.


Features

  • Model conversion:

    • xy,
    • xyY,
    • XYZ,
    • L*ab,
    • L*uv,
    • L*CH.
    • L*CH UV.
    • HSV,
    • HSL,
    • RGB for primaries *:
      • Adobe 1998 RGB,
      • Apple RGB,
      • Best RGB,
      • Beta RGB,
      • Bruce RGB,
      • CIE RGB,
      • ColorMatch RGB,
      • Don RGB 4,
      • ECI RGB v2,
      • Ekta Space PS5,
      • NTSC RGB,
      • PAL/SECAM RGB,
      • ProPhoto RGB,
      • Radiance RGB,
      • SMPTE-C RGB,
      • sRGB,
      • WideGamutRGB.

    * custom-defined primaries also supported.

  • Chromatic adaptation transformations matrices:

    • XYZ Scaling,
    • Von Kries,
    • Bradford,
    • CMCCAT2000,
    • CIECAT02,
    • Sharp.
  • White point dictionary of standard illuminants:

    (2° and 10° standard observer)

    • A,
    • B,
    • C,
    • D50, D55, D65, D75, D93,
    • E,
    • F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
    • LED_B1, LED_B2, LED_B3, LED_B4, LED_B5, LED_BH1, LED_RGB1, LED_V1, LED_V2. *

    * all LED-based illuminants have 2° standard observer only.

  • DeltaE difference:

    Check color distance in various algorithms:

    • CIE76,
    • CIE94,
    • CIE00 (CIEDE2000),
    • CMC l:c.
  • Contrast ratio calculation.

Requirements

PHP 8.1