Created NeoHueBlend objects (markdown)

Michael Miller
2016-03-28 14:22:31 -07:00
parent 4034ba2afb
commit 2060baf998

20
NeoHueBlend-objects.md Normal file

@@ -0,0 +1,20 @@
These "method" objects are used to define how the blend functions on HslColor and HsbColor are done. Due to the circular nature of Hue value for these objects, the blend can happen multiple ways.
[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.
### NeoHueBlendShortestDistance
This method object will blend the hue along the shortest distance around the wheel between the two colors.
This should be the most common one you will want to use, unless you have a specific need otherwise.
So blending from green (0.66) to blue (0.33) will blend counter clockwise rather than the longer distance clockwise through red (0.0 or 1.0).
### NeoHueBlendLongestDistance
This method object will blend the hue along the longest distance around the wheel between the two colors.
So blending from green (0.66) to blue (0.33) will blend clockwise through red (0.0 or 1.0) rather than the shortest distance directly to blue.
### 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.
### NeoHueBlendCounterClockwiseDirection
This method object will blend the hue counter-clockwise around the wheel from the left color to the right color.