mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-10 06:14:26 +02:00
Updated RgbwColor object API (markdown)
@@ -56,4 +56,11 @@ This is a static function, which means you need to call it scoped to the object
|
|||||||
```
|
```
|
||||||
RgbwColor results = RgbwColor::LinearBlend(RgbwColor(255,0,0,0), RgbwColor(0,255,0,10), 0.33f);
|
RgbwColor results = RgbwColor::LinearBlend(RgbwColor(255,0,0,0), RgbwColor(0,255,0,10), 0.33f);
|
||||||
```
|
```
|
||||||
|
### static RgbwColor BilinearBlend(RgbwColor c00, RgbwColor c01, RgbwColor c10, RgbwColor c11, float x, float y);
|
||||||
|
This will blend between four colors by the amount defined by 2d weighting values.
|
||||||
|
c00 - upper left quadrant color
|
||||||
|
c01 - upper right quadrant color
|
||||||
|
c10 - lower left quadrant color
|
||||||
|
c11 - lower right quadrant color
|
||||||
|
x - unit value (0.0 - 1.0) that defines the blend progress in horizontal space
|
||||||
|
y - unit value (0.0 - 1.0) that defines the blend progress in vertical space
|
||||||
|
Reference in New Issue
Block a user