Study Guides (380,000)
CA (150,000)
SFU (4,000)
IAT (70)
IAT 265 (10)
Final

IAT 265 Study Guide - Final Guide: Ellipse


Department
Interactive Arts & Tech
Course Code
IAT 265
Professor
Matt Lockyer
Study Guide
Final

This preview shows half of the first page. to view the full 1 pages of the document.
Flower
int NUM_PETALS = 24;
void setup() {
size(400, 400);
background(92, 125, 234);
smooth();
pushMatrix();
translate(200, 250);
noStroke();
fill(0, 255, 0);
rectMode(CENTER);
rect(0, 0, 5, 300);
popMatrix();
pushMatrix();
translate(200, 100);
fill(250, 255, 0);
ellipse(50, 0, 100, 25);
float angle = TWO_PI / NUM_PETALS;
for(int i = 0 ; i < NUM_PETALS ; i++) {
rotate(angle);
ellipse(50, 0, 100, 25);
}
fill(255);
ellipse(0, 0, 50, 50);
popMatrix();
}
void draw() {
}
You're Reading a Preview

Unlock to view full version