Session 1: Hello

Introduction to Programming for the Visual Arts with p5.js
Learn More About This Course
Session Media
Media Queue
Session Content
Hello
Hello

In this session, we will cover the following topics: 1) What is Code? 2) Form and Computers 3) Drawing: Define and draw simple shapes; and 4)...

Please Note: Due to an update to p5.js the examples in Session 1 that remove functions setup() and draw() no longer work. Please leave both setup and draw functions in your sketch or you will get an error. For these static (non-animated examples) you can do your drawing in setup or draw, but generally the drawing will happen inside the draw function.

Starting in Session 1.4 when you start drawing shapes do not follow Chandler's instructions to delete the setup and draw functions. When you draw your first ellipse, your code should look like this:

function setup() {
  
}

function draw() {
  ellipse(50, 50, 100, 100);
}

This content is locked.
to join the conversation
Forum Activity

One moment while we retrieve the threads for you.

Looks like you don't have any forums yet
up votes
replies