-
Notifications
You must be signed in to change notification settings - Fork 4
Untangled Step by Step task
Here are some steps to help you build a simple p5 sketch like the one on the front page of https://www.untangled.org.uk
They don't tell you exactly how to do it, but they help you break down a complex task into acheivable steps. Practice your git skills by committing to Git after each step.
Don't worry about how far you get, concentrate on having a good understanding of what you need to do and check that all of your group understands how you're solving the problems.
Also, remember to have fun, take your time and don't put pressure on yourselves to get everything done.
For this task you will be mob programming with support from coaches.
- Log in to your git account
- Clone the untangled-template repo
- Make a new repo on your account and change the project origin to point at it (coaches will help)
- Change something, make an initial commit and push to your new repo.
- Run the project following the instructions from untangled template README.md
- A browser window should open and you should see a white rectangle on a black background
You may want to refer to the P5.js library docs in order to complete these next steps
This Video from Daniel Shiffman might be helpful
- Open the project in your code editor
- Edit the code to make the black background fill the screen
- Add a white circle of a similar size to the rectangle
- Change the background to white and the shapes to black
- Change the shapes to be coloured randomly when the page loads
This example from the P5.js website may give you some ideas
- Make the circle move in a straight line
- Make the rectangle move in a diagonal line
- Make both shapes bounce off the edges of the screen
- Make both shapes move randomly around the screen
- Remove the rectangle
- Make five circles with the same behaviour and properties as the first circle
- Create a Circle class, so that you can make any number of circles appear.
- Turn the circles into hexagons
- Add a sound that gets triggered when the hexagons bounce off the screen edges
- Make the the big hexagons make a low pitched sound and smaller ones make a high pitched sound
- Make the hexagons attract and/or repel each other