From 4d06271a02248b49ca2ecefda0691d8743ccd63d Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Mon, 28 Mar 2016 14:26:24 -0700 Subject: [PATCH] Updated HslColor object API (markdown) --- HslColor-object-API.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HslColor-object-API.md b/HslColor-object-API.md index fbf86bc..36f7e7c 100644 --- a/HslColor-object-API.md +++ b/HslColor-object-API.md @@ -22,13 +22,14 @@ Construct a HslColor that will have its values set in latter operations. CAUTION: The H,S,L members are not initialized and may not be consistent until set. ## Methods -### static HslColor LinearBlend(HslColor left, HslColor right, float progress); +### template \ static HslColor LinearBlend(HslColor left, HslColor right, float progress) This will blend between two colors by the amount defined by the progress variable. +T_NEOHUEBLEND - [a NeoHueBlend object](https://github.com/Makuna/NeoPixelBus/wiki/NeoHueBlend-objects), that will define how the colors are blended. left - the color to start the blend at. right - the color to end the blend at. progress - (0.0f - 1.0f) value where 0.0f will return left and 1.0f will return right and a value between will blend the color weighted linearly between them. This is a static function, which means you need to call it scoped to the object class and not an instance like... ``` - HslColor results = HslColor::LinearBlend(HslColor(0.88f,1.0f,0.5f), HslColor(0.12f,1.0f,0.5f), 0.33f); + HslColor results = HslColor::LinearBlend(HslColor(0.88f,1.0f,0.5f), HslColor(0.12f,1.0f,0.5f), 0.33f); ```