This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Programming Challenges
mrseidel edited this page Sep 5, 2022
·
3 revisions
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)
This can be completed after Lab 02.
- Recreate this sketch using the colours shown.
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).
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.
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.
This can be completed after Lab 05.
- Create a sketch that has a circle deflects off of all the walls.
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.
This can be completed after Lab 07.
- Recreate this sketch.
- To complete this task, you will need to use
random()
,line()
, andfor()
loops. The lines should not move or change size as your program runs.
This can be completed after Lab 08.
- Recreate this sketch.
- To complete this task, you will need to use the
%
operator (the modulo operator), andwhile
loops.