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

◆ getPixel()

u8 fl::GlyphBitmap::getPixel ( i32 x,
i32 y ) const
inline

Definition at line 75 of file truetype.h.

75 {
76 if (data.empty() || x < 0 || y < 0 || x >= width || y >= height) {
77 return 0;
78 }
79 return data[y * width + x];
80 }
fl::vector< u8 > data
Definition truetype.h:63

References data, height, width, fl::x, and fl::y.