Additional Exercises

Some additional exercises you can try include the following:

1. The color scheme for this app was loosely based on Jackson Pollock’s Autumn Rhythm. Try changing the color of the paint and the canvas for a different aesthetic.

2. The radius of Circle in the instructions was set to 10. Of course, you can change this. Right now, it’s “hard-coded” with a number block. Expand the app so that users can change the radius as they paint. You’ll need another component, and you need to have that component change a value that somehow will be hooked up to the radius. May I recommend a slider?

3. The canvas has other drawing features that we haven’t used in this app. What else can you draw? Can you add features to the app to let the user ...

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.