Variables tutorial – Week 3

  • Introduction to variables.
  • Demonstration of variables. Draw a simple landscape with one tree/plant/rock/building/creature in it. You can use the code below to get started if you want.
  • (1) Make the sky change color every time the mouse is pressed.
  • (2) Make the tree (or what ever your thing is) move horizontally across the horizon – as if you are in a car driving along looking our the window.
  • (3) Add in a sun/moon/star or planet that is setting or rising slowly in your landscape.
//A forest
void setup() {
  size(400, 400);
  noStroke();
  fill(153, 216, 201);
  rect(0, 200, 400, 200);
}

void draw() {
  fill(42,162,95);
  triangle(190,180,205,140,220,180);
  fill(255,147,188);
  rect(200, 180, 10, 20);
}

Tutorial – Week 2

  • Coordinate System
  • 2D primatives
  • Color
  • Basic interactivity

Exercise 1: Basic drawing. Take your face and begin translating it into code.

Exercise 2: Drawing machine, basic interactivity. Create 3 different different basic drawing programs. Take a screen shot of a drawing using each one. Post to the blog if you like.

Download the basic functions cheat sheet here.

Learning to learn

An important part of this class if for you to think about your own learning process and figure out how you learn best. University is a chance for you to experiment and try out different strategies for taking on new and unknown things. Here’s some advice from two artists and teachers Zach Lieberman and John Cage on how to be a better learner:

Cage-Advice_LG

 John Cage, was an extraordinary composer and artist working in the last half of the 21st century.