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

◆ xy()

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

Definition at line 81 of file PJRCSpectrumAnalyzer.h.

81 {
82 if ((y & 1) == 0) {
83 // even numbered rows (0, 2, 4...) are left to right
84 return y * matrix_width + x;
85 } else {
86 // odd numbered rows (1, 3, 5...) are right to left
87 return y * matrix_width + matrix_width - 1 - x;
88 }
89}
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< float >::vec2(), fl::XYPathRenderer::at_subpixel(), fl::blur2d(), fl::XYPathRenderer::compute_float(), 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: