You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*We have several kinds of M5Cores, There is [their difference in schematic](https://github.com/m5stack/M5-Schematic/blob/master/Core/hardware_difference_between_cores.md).*
M5.Lcd.fillEllipse(x, y, rx, ry, random(0xFFFF));//At (x, y), draw a filled ellipse with random width and height of rx, ry with random color random (0xFFFF). 在(x,y)处以随机颜色random(0xFFFF),绘制一个随机宽高为rx,ry的填充椭圆
27
29
}
28
30
29
31
delay(2000);
30
-
M5.Lcd.fillScreen(TFT_BLACK);
32
+
M5.Lcd.clear(); //清空屏幕
31
33
32
34
for (int i = 0; i < 40; i++)
33
35
{
34
36
int rx = random(60);
35
37
int ry = random(60);
36
38
int x = rx + random(320 - rx - rx);
37
39
int y = ry + random(240 - ry - ry);
38
-
M5.Lcd.drawEllipse(x, y, rx, ry, random(0xFFFF));
40
+
M5.Lcd.drawEllipse(x, y, rx, ry, random(0xFFFF));//At (x, y), draw an elliptical wire frame with a random width and height of rx, ry in a random color (0xFFFF). 在(x,y)处以随机颜色random(0xFFFF),绘制一个随机宽高为rx,ry的椭圆线框
0 commit comments