mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-09 22:04:27 +02:00
Updated NeoHueBlend objects (markdown)
@@ -2,6 +2,7 @@ These "method" objects are used to define how the blend functions on HslColor an
|
||||
|
||||
[Wikipedia Entry on HSL and HSV](https://en.wikipedia.org/wiki/HSL_and_HSV)
|
||||
For this library, the Hue value is 0.0 to 1.0 instead of 0.0 to 360.0. Further, clockwise is considered within the context of a clock, where numbers increase when going clockwise, so does the Hue value increase when going clockwise.
|
||||
Hue is interesting in that Red is represented as both 0.0 and 1.0 and this value difference can be important in getting the results you want.
|
||||
|
||||
### NeoHueBlendShortestDistance
|
||||
This method object will blend the hue along the shortest distance around the wheel between the two colors.
|
||||
@@ -14,7 +15,7 @@ So blending from green (0.66) to blue (0.33) will blend clockwise through red (0
|
||||
|
||||
### NeoHueBlendClockwiseDirection
|
||||
This method object will blend the hue clockwise around the wheel from the left color to the right color.
|
||||
This is handy to use to create a full color blend effect. If you blend from Red (0.0) to near Red (0.9999) it will give you almost every color in wheel.
|
||||
This is handy to use to create a full color blend effect. If you blend from Red (0.0) to Red (1.0) it will give you every color in the wheel.
|
||||
|
||||
### NeoHueBlendCounterClockwiseDirection
|
||||
This method object will blend the hue counter-clockwise around the wheel from the left color to the right color.
|
Reference in New Issue
Block a user