FastLED 3.10.6
Loading...
Searching...
No Matches

◆ toRGBf()

RGBf mood_ring::toRGBf ( CRGB c)

Definition at line 6 of file ring_canvas.cpp.

6 {
7 RGBf p;
8 p.r = static_cast<float>(c.r) * (1.0f / 255.0f);
9 p.g = static_cast<float>(c.g) * (1.0f / 255.0f);
10 p.b = static_cast<float>(c.b) * (1.0f / 255.0f);
11 return p;
12}
Linear-light float pixel, nominal range [0, 1], may exceed 1 before clip.
Definition ring_canvas.h:24

References mood_ring::RGBf::b, mood_ring::RGBf::g, and mood_ring::RGBf::r.

Referenced by paletteColor().

+ Here is the caller graph for this function: