FastLED
3.10.6
Loading...
Searching...
No Matches
◆
quantize_u8()
u8
fl::colorimetric_response::quantize_u8
(
float
v
)
inline
Definition at line
194
of file
colorimetric_response.h
.
194
{
195
const
float
scaled = v * 255.0f + 0.5f;
196
if
(scaled <= 0.0f)
return
0;
197
if
(scaled >= 255.0f)
return
255;
198
return
static_cast<
u8
>
(scaled);
199
}
fl::u8
unsigned char u8
Definition
stdint.h:131
References
fl::FL_NO_EXCEPT
.
fl
colorimetric_response
Generated on Sun Oct 4 2026 23:09:11 for FastLED by
1.13.2