diff --git a/NeoPixelBusLg-object-API.md b/NeoPixelBusLg-object-API.md index f06647a..6926052 100644 --- a/NeoPixelBusLg-object-API.md +++ b/NeoPixelBusLg-object-API.md @@ -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. \ No newline at end of file +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 MyBusType; +MyBusType strip(PixelCount, PixelPin); +NeoDib image(PixelCount); + +... + +image.Render(strip, strip.Shader); +``` \ No newline at end of file