Doing the Digital Doodle

Debbie’s class has the computers arranged in rows, like this:

Debbie is using this computer room in the Andrews Middle School.
Debbie is using this computer room in the McGlynn Middle School.

All of the students were working in pairs.

In her class today, the students had built the MIT “Digital Doodle” tutorial, which lets you draw on the tablet using a Canvas component (see http://explore.appinventor.mit.edu/sites/all/files/hourofcode/DigitalDoodle_2perpage.pdf). The key bit of code looks like this (from Page 7 of the tutorial):

Code from MIT Digital Doodle tutorial PDF.
Code from MIT Digital Doodle tutorial PDF.

They all had it working. So then I asked them, can you get it to draw a different color?

A few of the students figured it out. Here’s the code from one of the groups:

Adding color to the Digital Doodle app with the Set Canvas PaintColor method.
Adding color to the Digital Doodle app with the Set Canvas PaintColor method.

The new part is the “Set Canvas PaintColor” command, plus the use of a color block.

I asked the students who figured it out to share the solution with each other.