Computational Thinking

Joel Gethin Lewis

Lecture 7

What I'm going to talk about today:

  1. Transformation.
  2. Locating boxes.
  3. How to output a gif in p5.js (and get live camera input working)
  4. How to use forums.

Transformation.

Thanks again to Rune Madsen for putting his course online:

http://printingcode.runemadsen.com/lecture-transformation/

Don't forget to click to the slides and press 's' Joel!

Locating boxes.

Thanks again to Ali Almossawi for writing his book.

Read the Locating boxes chapter of "Bad Choices" Joel!

How to output a gif in p5.js.

Last time we managed to load a gif in p5.js and control it with a GUI. It would be nice to able to save out our work as a gif.

So let's Google: "save gif p5.js".

Let's download all the files and run it (with Ad-Blocking disabled!).

How to get a output a gif in p5.js (and get live camera input working).

I'll need to run this using a local server, as in the previous lecture.

Looks like I found out how to get a live camera working in p5.js too!

How to use forums.

It's good to read and understand the p5.js Community Statement.

The Processing forum is great.

The p5.js forum is even greater.

The Forum FAQ is also important to read.

Thanks!