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

◆ xy()

unsigned int xy ( unsigned int x,
unsigned int y )

Definition at line 86 of file PJRCSpectrumAnalyzer.h.

86 {
87 if ((y & 1) == 0) {
88 // even numbered rows (0, 2, 4...) are left to right
89 return y * matrix_width + x;
90 } else {
91 // odd numbered rows (1, 3, 5...) are right to left
92 return y * matrix_width + matrix_width - 1 - x;
93 }
94}
int y
Definition simple.h:93
int x
Definition simple.h:92
const unsigned int matrix_width

References matrix_width, x, and y.

Referenced by fl::vec2< u16 >::vec2(), fl::XYPathRenderer::at_subpixel(), fl::XYPathRenderer::compute_float(), fl::third_party::DecodeHuffmanPairs(), FL_DISABLE_WARNING(), anonymous_namespace{LedRopeTCL.cpp}::init_screenmap(), loop(), makeScreenMap(), setup(), fl::splat(), fl::Matrix3x3f::transform(), fl::Transform16::transform(), fl::TransformFloat::transform(), fl::TransformFloatImpl::transform(), and wu_water().

+ Here is the caller graph for this function: