Added an example of scaling with sprite() function
@@ -39,7 +39,8 @@ void render(uint32_t time_ms) {
screen.text("Flip", minimal_font, Point(5, 100));
// Right Titles
- screen.text("Big", minimal_font, Point(85, 20));
+ screen.text("Big\n(Blit)", minimal_font, Point(85, 20));
+ screen.text("Big\n(Sprite)", minimal_font, Point(85, 40));
screen.pen = Pen(0, 0, 0);
screen.text("Sprite demo", minimal_font, Point(5, 4));
@@ -94,6 +95,9 @@ void render(uint32_t time_ms) {
Rect(130, 16, 16, 16)
);
+ // Also, stretched with the scale factor of the normal sprite functions
+ screen.sprite(Point(0,0), Point(130,40), Point(0,0), 2.0f);
+
uint32_t ms_end = now();
