mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 12:54:26 +02:00
Updated Rgb48Color object API (markdown)
@@ -100,4 +100,11 @@ This will blend between four colors by the amount defined by 2d weighting values
|
|||||||
> * _c10_ - lower left quadrant color
|
> * _c10_ - lower left quadrant color
|
||||||
> * _c11_ - lower right quadrant color
|
> * _c11_ - lower right quadrant color
|
||||||
> * _x_ - unit value (0.0 - 1.0) that defines the blend progress in horizontal space
|
> * _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
|
> * _y_ - unit value (0.0 - 1.0) that defines the blend progress in vertical space
|
||||||
|
|
||||||
|
## Operators
|
||||||
|
### uint16_t operator[](size_t idx)
|
||||||
|
The index operator allows accessing the R, G, and B properties using an index. There are both read only and read write versions.
|
||||||
|
```
|
||||||
|
uint16_t green = color[1];
|
||||||
|
```
|
Reference in New Issue
Block a user