Skip to content

Commit 3610df4

Browse files
committed
add drawTextWithShadow functionality for Inkplate 2
1 parent 9715199 commit 3610df4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/graphics/Shapes/Shapes.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ class Shapes : virtual public Adafruit_GFX
4545
void drawThickLine(int x1, int y1, int x2, int y2, int color, float thickness);
4646
void drawGradientLine(int x1, int y1, int x2, int y2, int color1, int color2, float thickness = -1);
4747

48+
#if defined(ARDUINO_INKPLATE2) || defined(ARDUINO_INKPLATE4) || defined(ARDUINO_INKPLATE7)
49+
void drawTextWithShadow(int x, int y, const char *_text, uint8_t _colorText, uint8_t _colorShadow);
50+
#endif
51+
4852
private:
4953
struct EdgeBucket
5054
{

0 commit comments

Comments
 (0)