ionsharp / Core.Color

Color management for shared projects.
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

HSM #5

Open ionsharp opened 2 years ago

ionsharp commented 2 years ago

Issue-1

The code on the right (shader) attempts to replicate the code on the left (source).

The overall visual representation is seemingly incorrect. The range of hues is biased towards green and largely avoids red.

This is the only source I can find for this color space.

ionsharp commented 2 years ago

H, S, and M must be normalized to range [0, 1] prior to any calculations. The input range is [0-360, 0-100, 0-255].