mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 04:44:26 +02:00
Updated NeoPixelBusLg object API (markdown)
@@ -64,4 +64,17 @@ This will clear all pixels from first to last to the given color. The color wil
|
||||
> * _last_ - the index to the last pixel that will be cleared
|
||||
|
||||
### void ApplyPostAdjustments()
|
||||
This will apply luminance and gamma adjustments to all existing stored pixel data; even if previously applied by calling SetPixelColor(). It is primarily used when the Pixels() method is used to directly access and set all pixel data into the memory buffer that will then need to be corrected.
|
||||
This will apply luminance and gamma adjustments to all existing stored pixel data; even if previously applied by calling SetPixelColor(). It is primarily used when the Pixels() method is used to directly access and set all pixel data into the memory buffer that will then need to be corrected.
|
||||
|
||||
# Shader object
|
||||
The class exposes an instanced object `Shader` that is a type of `LuminanceShader`. This allows external NeoDib buffers to render into the NeoPixelBusLg using the luminance and gamma correction already defined and used in the strip.
|
||||
|
||||
```
|
||||
typedef NeoPixelBusLg<NeoGrbFeature, NeoWs2812xMethod> MyBusType;
|
||||
MyBusType strip(PixelCount, PixelPin);
|
||||
NeoDib<RgbColor> image(PixelCount);
|
||||
|
||||
...
|
||||
|
||||
image.Render<NeoGrbFeature, MyBusType::LuminanceShader>(strip, strip.Shader);
|
||||
```
|
Reference in New Issue
Block a user