diff --git a/src/patrix/display/Display.h b/src/patrix/display/Display.h index 55848ee..6d6f478 100644 --- a/src/patrix/display/Display.h +++ b/src/patrix/display/Display.h @@ -89,6 +89,10 @@ public: fillRect(0, 0, width, height, Black); } + void setPixel(const double x, const double y, const RGBA color) { + setPixel(static_cast(round(x)), static_cast(round(y)), color); + } + void setPixel(const int x, const int y, const RGBA color) { if (x < 0 || x >= width || y < 0 || y >= height) { return;