Added subpixel-rendering as well as blurring methods to Window.
This commit is contained in:
@ -19,6 +19,7 @@ public:
|
||||
void clear();
|
||||
void clear(CRGB* color);
|
||||
void setPixel(uint8_t x, uint8_t y, CRGB* color);
|
||||
void setSubPixel(accum88 x, accum88 y, CRGB* color);
|
||||
void setPixelByIndex(uint16_t index, CRGB* color);
|
||||
void raisePixel(uint8_t x, uint8_t y, CRGB* color);
|
||||
void line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, CRGB* color);
|
||||
@ -27,7 +28,19 @@ public:
|
||||
void circle(uint8_t x, uint8_t y, uint8_t r, CRGB* color);
|
||||
uint16_t coordsToGlobalIndex(uint8_t x, uint8_t y);
|
||||
uint16_t localToGlobalIndex(uint16_t);
|
||||
void drawChar(Font* f, uint8_t x, uint8_t y, const char c, CRGB* color, bool mask=false);
|
||||
void drawChar(Font* f, accum88 x, accum88 y, const char c, CRGB* color, bool mask=false);
|
||||
void drawText(Font* f, uint16_t x, uint16_t y, String s, CRGB* color);
|
||||
void drawSubText(Font* f, accum88 x, accum88 y, String s, CRGB* color);
|
||||
void addPixelColor(uint16_t index, CRGB* color);
|
||||
void addPixelColor(uint8_t x, uint8_t y, CRGB* color);
|
||||
CRGB get_pixel(uint8_t x, uint8_t y);
|
||||
void fadeToBlackBy(fract8 speed);
|
||||
void shift_down();
|
||||
void shift_down_and_blur();
|
||||
void clear_row(uint8_t y);
|
||||
void blur(fract8 intensity);
|
||||
void blur_rows(fract8 intensity);
|
||||
void blur_row(uint8_t y, fract8 intensity);
|
||||
void blur_columns(fract8 intensity);
|
||||
void blur_column(uint8_t x, fract8 intensity);
|
||||
};
|
||||
|
Reference in New Issue
Block a user