Skip to content

Instantly share code, notes, and snippets.

View KyleSmith0905's full-sized avatar
:shipit:
Developing Estimtest

Kyle Smith KyleSmith0905

:shipit:
Developing Estimtest
View GitHub Profile
@KyleSmith0905
KyleSmith0905 / sineHSV.md
Last active December 20, 2021 01:10
Sine HSV to RGB

Sine HSV to RGB

An HSV to RGB converter built for rainbow gradients.


Why Sine HSV?

With regular HSV, hue changes one value at a time. For example, as hue goes from 0° (red) to 60° (yellow) (with value and saturation unchanged), there are twice as many pixels lit. Think about that, only because a color is a different hue, it's twice as bright.

Using /visualization.py, here is a comparison of HSV.

HSV converted to RGB using a standard library: