Change Violet's Tummy

Using the color extension, track colors and change the color of Violet's tummy from pink to red!

Download the project and launch Cognimates!

Have you implemented a Change Violet's Tummy activity? Have feedback to share? Questions about how to get started? Get in touch!

Here is a tutorial to get you started:

  • Step 1: Start by loading the project.

  • Step 2: This project uses the color tracking extension. It can detect colors as they appear in and out of the webcam of your laptop.

  • Step 3: Click on the green flag. Violet's going to start off with a pink tummy and ask to get her color changed. She’ll be impatient at first - see if you can fix it by putting a red object in front of the camera!

  • Step 4: Yay, Violet's tummy color changed! If you click on Violet's costumes, you can see what other tummy colors are available. Adjust the code so that Violet's tummy changes with any of the given colors. Now, we can track for more than just red and have even more variety!

  • Step 5: Try adding your own colors that the camera could track. Remember that once you add a color, it’ll track colors that are within the same color range - for example, light green, medium green, and dark green might all be tracked if you set medium green to be the tracked color. Go for the classic rainbow colors - give Violet new costumes so that she can be pretty in all different colors!