Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Programming Challenges

mrseidel edited this page Sep 5, 2022 · 3 revisions

๐Ÿ“˜ Challenges

Challenge 01 - Arcs

This can be completed after Lab 01.

Using your knowledge of Processing so far, recreate one of these two images (image one, image two). Use a screen size of at least 640 pixels wide, and you should be using only the arc() function (and ellipse() for the little dots)

Challenge 02 - Coloured Circles

This can be completed after Lab 02.

Challenge 03 - Rainbow Circles

This can be completed after Lab 03.

  • Recreate this sketch using the colouring shown. You will need to use a different colour space to complete this task (HSB instead of RGB).

Challenge 04 - Quadrants

This can be completed after Lab 05.

  • Create a sketch that is split into four quadrants. When hovering over a quadrant with the mouse, it should change colour to denote that it is being hovered over.

Challenge 05 - Half-Stuck Circle

This can be completed after Lab 05.

  • Create a sketch that is split into two halves (vertical line in the middle). Have an ellipse follow your mouse normally whenever it is on the left-hand side of the sketch, but when the mouse is on the right half, the circle should can only follow in a vertical direction.
  • See this sketch for an example.

Challenge 06 - Deflecting Walls

This can be completed after Lab 05.

  • Create a sketch that has a circle deflects off of all the walls.

Challenge 07 - Moving Clickable-Box

This can be completed after Lab 06.

  • Recreate this sketch.
  • Notable items for this sketch include the following:
    • The arrow keys move the black square around
    • When you click the mouse within the bounds of the square, it changes fill to green while the mouse it held
    • Any other time you click, nothing occurs
  • For an added challenge, ensure the square cannot leave the screen.

Challenge 08 - Many Lines

This can be completed after Lab 07.

  • Recreate this sketch.
  • To complete this task, you will need to use random(), line(), and for() loops. The lines should not move or change size as your program runs.

Challenge 09 - Many Shades of Purple

This can be completed after Lab 08.

  • Recreate this sketch.
  • To complete this task, you will need to use the % operator (the modulo operator), and while loops.
Clone this wiki locally