ColorSpace
C++ library for working with different color spaces, converting between color spaces and comparing colors
Install / Use
/learn @berendeanicolae/ColorSpaceREADME
ColorSpace
C++ library for converting between color spaces and comparing colors.
Color Conversion
You can convert between any supported color spaces using the To template method:
ColorSpace::Lab lab(100, 0, 0);
ColorSpace::Cmy cmy;
lab.To<ColorSpace::Cmy>(&cmy);
Color Comparison
You can compare colors by using the Compare method of each comparison class:
ColorSpace::Lab a(100, 0, 0);
ColorSpace::Rgb b(255, 255, 255);
ColorSpace::Cie2000Comparison::Compare(&a, &b);
Currently Supported Color Spaces
- CMY
- CMYK
- HSL
- HSB
- HSV
- CIE L*AB
- Hunter LAB
- LCH
- LUV
- RGB
- XYZ
- YXY
Currently Supported Comparisons
- Euclidean
- CIE1976
- CIE94
- CIE2000
- CMC
License
ColorSpace is licenced under the MIT License, see LICENSE for more information.
Related Skills
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
334.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.1kCommit, push, and open a PR
