In order to write and run a computer program, we need a “development environment”: the set of tools needed to plan, write, and run our programs.
In this workshop, your development environment will be:
East House
shortcut on the desktop
p5.js is a JavaScript library for creative coding, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! (p5js.org)
We’re using it because it lets you get up and running quickly so you can play with some core computing concepts and see immediate results. :)
Without logging in, you can write and run programs using an online p5.js editor: https://editor.p5js.org/
If you want to be able to save your work for later:
Sign Up
Login with Google
Sign Up
Use File -> New
to create a new default program.
The editor will give it some kind of silly default name (e.g., “Fossil accelerator”). You can change the name to whatever you want.
Press the play button to run the program. The default sketch will draw a single gray square.
It helps to always have a plan of what we want to do before we ever touch a computer!
Professional software engineers use paper, whiteboards, etc. to brainstorm & collect ideas. This saves us time & rework later!
Because we’ll be writing programs that generate 2d images, you’ll make plans by drawing mockups of the final image on a grid.
If we wanted to draw a heart, the first step would be to think about the basic shapes needed and then start figure out the coordinates of where to draw them. That’s a mental/planning activity. No code needed!