From 2060baf998d8eb5df074f1e413b77ea3ab4d57ac Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Mon, 28 Mar 2016 14:22:31 -0700 Subject: [PATCH] Created NeoHueBlend objects (markdown) --- NeoHueBlend-objects.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 NeoHueBlend-objects.md diff --git a/NeoHueBlend-objects.md b/NeoHueBlend-objects.md new file mode 100644 index 0000000..0a6003f --- /dev/null +++ b/NeoHueBlend-objects.md @@ -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. \ No newline at end of file