FastLED 3.9.15
Loading...
Searching...
No Matches

◆ rgb_sanity_check_fp()

FASTLED_FORCE_INLINE void fl::rgb_sanity_check_fp ( fl::i32 & r,
fl::i32 & g,
fl::i32 & b )

Definition at line 166 of file render_value_fp.h.

166 {
167 if (r < 0) r = 0;
168 if (r > 255) r = 255;
169 if (g < 0) g = 0;
170 if (g > 255) g = 255;
171 if (b < 0) b = 0;
172 if (b > 255) b = 255;
173}

References FASTLED_FORCE_INLINE.

Referenced by fl::Center_Field_FP::draw(), fl::Complex_Kaleido_5_FP::draw(), fl::Module_Experiment2_FP::draw(), fl::Module_Experiment3_FP::draw(), fl::Scaledemo1_FP::draw(), and fl::SpiralMatrix4_FP::draw().

+ Here is the caller graph for this function: