APP Inventor如何通过按钮画大圆

时间:2024-10-14 12:40:13

1、首先打开APP Inventor2,在组件设计里拖出画布.

APP Inventor如何通过按钮画大圆

2、然后设置画布的宽度为填满,高度为200像素.

APP Inventor如何通过按钮画大圆

3、拖动一个按钮放到画布的底下.

APP Inventor如何通过按钮画大圆

4、修改按钮的名字为画大圆.

APP Inventor如何通过按钮画大圆

5、接着切换到逻辑编程界面.

APP Inventor如何通过按钮画大圆

6、最后编写画圆的代码和当点击画大圆的按钮时,就将半径设置为较大数字,这个时候触摸画布就能画大圆了.

APP Inventor如何通过按钮画大圆
© 手抄报圈