EU Code Week 2020 - Day Five - Code Your Camera

About this lesson

Today's Playground:
Lights, Camera, Code playground
Lights, Camera, Code
Day five: Code your camera playground image This playground really kicks up our coding capabilities!

We're going to learn about using a lot of the things we've learned already to build a functioning camera app. There may be a lot of code that looks unfamiliar to you, but the instructions will walk us through adding code to the playground to get a functioning camera.

Try your best to follow along, and we'll give you some tips for thinking about these new features today!

Video

Recorded 9 December, 2020:

Unplugged Activity

Make a paper spinner

You will need:
  • Paper or card
  • Scissors
  • Pencils
  • Optional: dice

Activity:


What are the components for a perfect dance? Create a paper spinner with numbers 1 to 6 (or use dice). Choose 6 dance moves you would like in your dance.

Each number matches a dance move. You could sketch them on your spinner. Spin the spinner 10 times and write down the combination of dance moves.

Construct your camera in the 'Lights, Camera, Code' playground. Now use the Camera you have created with code to capture the moves for your random, perfect dance.


Extend

Extend: save your photos
There is so much more to explore (and implement) in the Lights, Camera, Code playground.

Start with the next page, Saving Your Photos. This saves the pictures you take right in the camera roll on the iPad!
Try and complete the Lights, Camera, Code playground.

If your curiosity is piqued, you can try out the recommended follow-on playgrounds, like Assemble Your Camera or Flashy Photos. Or grab the App at Home playground from The Code Hub's playground feed and try building out an app of your own design, using the components you learned about in this playground.