Exercises

Here are some exercises you can do to extend and improve this project. Some of them assume advanced skills that you might not have yet. If that’s the case, don’t worry. These exercises are just suggestions for things you could do to expand the project and practice your skills.

  • Give all of the images starting positions so that they’re visible when the sketch starts up.

  • Add the ability to capture a screen grab of the current position of the images using Processing’s keyPressed callback.

  • Write a ScalableImage class that remembers the position, size, and scale of each image. Using multiple instances of your class should dramatically clean up the repetitive variables in the project as it currently exists and make it easier to add multiple images. ...

Get Making Things See 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.