renderbug-cpp/firmware/Figments/Surface.h
2019-05-09 22:17:29 -07:00

21 lines
470 B
C++

#include "FastLED/FastLED.h"
#include "./Geometry.h"
class Display;
class Surface {
public:
Surface(Display* dpy, const VirtualCoordinates& start, const VirtualCoordinates& end);
Surface& operator=(const NSFastLED::CRGB& color);
Surface& operator+=(const NSFastLED::CRGB& color);
void paintWith(std::function<void(NSFastLED::CRGB&)> func);
const PhysicalCoordinates start;
const PhysicalCoordinates end;
private:
Display* m_display;
};