FastLED 3.9.15
|
LIB8STATIC_ALWAYS_INLINE uint8_t scale8 | ( | uint8_t | i, |
fract8 | scale ) |
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is 256.
In other words, it computes i * (scale / 256)
i | input value to scale |
scale | scale factor, in n/256 units |
Definition at line 34 of file scale8.h.
References LIB8STATIC_ALWAYS_INLINE, and scale.
Referenced by DATA_NOP::adjust(), beatsin8(), brighten8_lin(), brighten8_raw(), ColorFromPalette(), ColorFromPalette(), dim8_lin(), dim8_raw(), fl::Fire2012::draw(), ease8InOutQuad(), fadeUsingColor(), fill_raw_2dnoise16into8(), fill_raw_2dnoise8(), fillnoise8(), fl::NoisePalette::fillnoise8(), Fire2012WithPalette(), Fire2023(), hsv2rgb_rainbow(), hsv2rgb_spectrum(), PixelController< RGB_ORDER, LANES, MASK >::init_binary_dithering(), lerp7by8(), lerp8by8(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale(), loop(), map8(), nblend(), fl::Pacifica::pacifica_add_whitecaps(), pacifica_add_whitecaps(), fl::Pacifica::pacifica_deepen_colors(), pacifica_deepen_colors(), rgb2hsv_approximate(), rgb_2_rgbw_exact(), rgb_2_rgbw_max_brightness(), rgb_2_rgbw_null_white_pixel(), rgb_2_rgbw_white_boosted(), PixelController< RGB_ORDER, LANES, MASK >::scale(), and PixelController< RGB_ORDER, LANES, MASK >::scale().