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

◆ posOf()

float mood_ring::RingCanvas::posOf ( int i) const

Position of pixel i in turns.

Definition at line 78 of file ring_canvas.cpp.

78 {
79 const int n = size();
80 if (n <= 0)
81 return 0.0f;
82 return static_cast<float>(i) / static_cast<float>(n);
83}

References size().

Referenced by lobe(), and ring().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: