|
1 | | -""" |
2 | | -Simpletest example adapted for use on the MagTag |
3 | | -""" |
4 | 1 | import board |
5 | 2 | import displayio |
6 | 3 | from adafruit_display_shapes.rect import Rect |
|
50 | 47 | ) |
51 | 48 | splash.append(polygon) |
52 | 49 |
|
53 | | -triangle = Triangle(170, 20, 140, 90, 210, 100, fill=0xFFFFFF, outline=0x000000) |
| 50 | +triangle = Triangle(170, 20, 140, 90, 210, 100, fill=0x999999, outline=0x000000) |
54 | 51 | splash.append(triangle) |
55 | 52 |
|
56 | | -rect = Rect(80, 20, 41, 41, fill=0x0) |
| 53 | +rect = Rect(80, 20, 41, 41, fill=0x999999, outline=0x666666) |
57 | 54 | splash.append(rect) |
58 | 55 |
|
59 | 56 | circle = Circle(100, 100, 20, fill=0xFFFFFF, outline=0x000000) |
|
62 | 59 | rect2 = Rect(70, 85, 61, 30, outline=0x0, stroke=3) |
63 | 60 | splash.append(rect2) |
64 | 61 |
|
65 | | -roundrect = RoundRect(10, 10, 61, 51, 10, fill=0x000000, outline=0x000000, stroke=6) |
| 62 | +roundrect = RoundRect(10, 10, 61, 51, 10, fill=0x666666, outline=0x000000, stroke=6) |
66 | 63 | splash.append(roundrect) |
67 | 64 |
|
68 | 65 | display.refresh() |
|
0 commit comments