32 if (tiles.
size() == 0) {
41 for (
const auto &tile : tiles) {
51 for (
int x = 0;
x < 2; ++
x) {
52 for (
int y = 0;
y < 2; ++
y) {
57 int xx = origin.
x +
x;
58 int yy = origin.
y +
y;
59 if (optional_bounds && !optional_bounds->
contains(xx, yy)) {
73 if (!
xymap.has(pt.x, pt.y)) {
76 u32 index =
xymap(pt.x, pt.y);
77 const CRGB &color = it.second;
79 if (color.r != 0 || color.g != 0 || color.b != 0) {
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
vec2< u16 > origin() const
void draw(const XYMap &xymap, CRGB *out)
void rasterize(const vec2< u16 > &pt, u8 value)
fl::rect< u16 > mAbsoluteBounds
void draw(const CRGB &color, const XYMap &xymap, CRGB *out)
void drawGradient(const Gradient &gradient, const XYMap &xymap, CRGB *out)
void rasterize_internal(const Tile2x2_u8 &tile, const rect< u16 > *optional_bounds=nullptr)
void write(const vec2< u16 > &pt, u8 value)
Representation of an RGB pixel (Red, Green, Blue)
bool contains(const vec2< T > &p) const