mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 04:44:26 +02:00
Updated Rgb48Color object API (markdown)
@@ -84,7 +84,7 @@ This will blend between two colors by the amount defined by the progress variabl
|
||||
> * _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...
|
||||
```
|
||||
Rgb48Color results = Rgb48Color::LinearBlend(Rgb48Color(255,0,0), Rgb48Color(0,255,0), 0.33f);
|
||||
Rgb48Color results = Rgb48Color::LinearBlend(Rgb48Color(65535,0,0), Rgb48Color(0,65535,0), 0.33f);
|
||||
```
|
||||
|
||||
### static Rgb48Color LinearBlend(Rgb48Color left, Rgb48Color right, uint8_t progress);
|
||||
@@ -94,7 +94,7 @@ This will blend between two colors by the amount defined by the progress variabl
|
||||
> * _progress_ - (0 - 255) value where 0 will return left and 255 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...
|
||||
```
|
||||
Rgb48Color results = Rgb48Color::LinearBlend(Rgb48Color(255,0,0), Rgb48Color(0,255,0), 85);
|
||||
Rgb48Color results = Rgb48Color::LinearBlend(Rgb48Color(65535,0,0), Rgb48Color(0,65535,0), 85);
|
||||
```
|
||||
|
||||
### static Rgb48Color BilinearBlend(Rgb48Color c00, Rgb48Color c01, Rgb48Color c10, Rgb48Color c11, float x, float y);
|
||||
|
Reference in New Issue
Block a user