-
Notifications
You must be signed in to change notification settings - Fork 19
Library Structure
The main namespace of the ColorSharp library is Litipk.ColorSharp
, but all the features are encapsulated inside other name subspaces.
Here you can find the classes to handle colors and color conversions.
To see more, go to Color Spaces.
Here you can find illuminant samples. Illuminants are used in color conversions and color adaptations because the chromaticity we perceive depends on ambient illumination.
To see more, go to Illuminants.
Here you can find the classes to handle light spectrum and conversions from spectrum to colors.
To see more, go to Light Spectrums.
Here you can find something called Color Matching Functions. This functions are used to convert light spectrum to color samples.
The conversion from light to colors depends on a lot of parameters. For example, it's not the same to convert a color you are seeing in a small region in front of your eyes that converting to a color spread in a not so little region and in the peripheral zone of your visual field.
Moreover, sometimes you'll need more precision, and sometimes you'll need to run your code faster. Because this ColorSharp includes more and less precise versions of the most common matching functions.
To see more, go to Matching Functions.
Because we have many color spaces, and many of them aren't capable of representing the complete color gamut that humans can see, sometimes we have to decide which information we prefer to preserve during the color space conversion process, or how to reconstruct the missing information.
The strategy classes are very specific to concrete conversions in order to avoid polluting the method signatures.