Week 1 (Sep 1)

Intro

Why code?

Code-form / Art-content

Programming - actions, instructions, verbs

Function

Drawing stuff - x, y, dimensions

shapes, lines, point(x,y), line(xs,ys,xe,ye), rect(), ellipse(), triangle(), hexagon(), vertex()

Filling in colors - r, g, b, a, #FFFFFF, ‘red’

fill( ); stroke(); StrokeWeight(3pixel); background(); noStroke(); noFill();

{container}

setup() draw()

console.log(frameRate());

order matters! function definition-order doesn’t matter!

function setup() { -define(possibility of doing something, it’s only idea) createCanvas(400, 400); - call(Do it) console.log(frameRate()); }

function draw() { createCanvas(mouseX, 400); background(220); }

gr