13template<
class T,
int F,
int I>
class qfx {
30#if (defined(FL_IS_ARM) || defined(FASTLED_RISCV) || defined(FASTLED_APOLLO3)) && !defined(ARDUINO_ARCH_ZEPHYR)
40#if (defined(FL_IS_ARM) || defined(FASTLED_RISCV) || defined(FASTLED_APOLLO3)) && !defined(ARDUINO_ARCH_ZEPHYR)
41template<
class T,
int F,
int I>
static int operator*(
int v, qfx<T,F,I> & q) {
return q * v; }
i16 operator*(i16 v) FL_NOEXCEPT
u16 operator*(u16 v) FL_NOEXCEPT
u32 operator*(u32 v) FL_NOEXCEPT
Multiply the fractional int by a value.
qfx(float fx) FL_NOEXCEPT
Constructor, storing a float as a fractional int.
i32 operator*(i32 v) FL_NOEXCEPT
qfx(u8 _i, u8 _f) FL_NOEXCEPT
Constructor, storing a fractional int directly.
Template class for representing fractional ints.
qfx< u16, 12, 4 > q124
A 12.4 integer (12 bits integer, 4 bits fraction)
qfx< u16, 8, 8 > q88
A 8.8 integer (8 bits integer, 8 bits fraction)
qfx< u8, 4, 4 > q44
A 4.4 integer (4 bits integer, 4 bits fraction)
qfx< u8, 6, 2 > q62
A 6.2 integer (6 bits integer, 2 bits fraction)
FASTLED_FORCE_INLINE CRGB operator*(const CRGB &p1, u8 d) FL_NOEXCEPT
Multiply each of the channels by a constant, saturating each channel at 0xFF.
Base definition for an LED controller.