|
FastLED 3.10.6
|
|
inlinestatic |
Set up e from the per-channel brightness scale and d from frame.
Lower brightness needs a bigger offset: e = 256/scale, so the offset spans one output step's worth of input. A zero scale (unlit channel) gets no dither.
Definition at line 151 of file binary_dither.h.
References FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, offset(), phase(), and scale.
Referenced by PixelController< RGB_ORDER, LANES, MASK >::init_binary_dithering().
Here is the call graph for this function:
Here is the caller graph for this function: