What is Negarity color?
Negarity color is a part of a set of PHP graphics library. Negarity color is a core part to make it possible to handle colors when working with images.
Negarity color is developed in a way to be easily extended. It has covered many color spaces built-in. These are the currently supported color spaces as default:
- CMYK
- HSL (and HSLA)
- HSV
- Lab
- LCh
- RGB (and RGBA)
- XYZ
- YCbCr
All the conversions between these color spaces are implemented as default. So, you can easily convert colors in these color spaces.
Negarity color is built to be extendable easily, so you can add new color spaces. You can read how to add a new color space to Negarity color here.
You can read more about color spaces in Negarity color color space reference.
Generators
There are some default built in generators which help you to generate default colors, or color sets. These are some default built-in generators:
- AnalogousGenerator: To generate analogous colors of a given color. Read more about analogous colors here.
- ComplementaryGenerator: To generate complementary colors of a given color. Read more about complementary colors here.
- MonochromaticShadeGenerator: To generate monochromatic shades of a given color. Read more about monochromatic shades here.
- MonochromaticTintGenerator: To generate monochromatic tints of a given color. Read more about monochromatic tints here.
- SplitComplementaryGenerator: To generate split complementary colors of a given color. Read more about split complementary colors here.
- TetradicGenerator: To generate tetradic colors of a given color. Read more about tetratic colors here.
- TriadicGenerator: To generate triadic colors of a given color. Read more about triadic colors here.
In Negarity color, generators are also built to be extendable. So you can easily add a generator and it works out of the box with the color spaces. You can read how to add a new generator to Negarity color here.
If you want you can read more about generators in Negarity color.