Study Guides (380,000)
CA (150,000)
SFU (4,000)
IAT (70)
IAT 167 (10)
Study Guide

IAT 167 Study Guide - Comprehensive Final Exam Guide - Point Of Sale, Library, Inheritance (Object-Oriented Programming)


Department
Interactive Arts & Tech
Course Code
IAT 167
Professor
Eric Yingchen Yang
Study Guide
Final

This preview shows pages 1-3. to view the full 63 pages of the document.
IAT 167

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

Lecture -1
Window Size: size(w, h);
Colors: (R, G, B, A); [0-255]
e.g. noFill ();
noStroke();
strokeWeight();
fill (255);
[arguments (values)]
Border all around:
e.g. arc(x, y, width, height, starting angle, ending angle, CLOSE);
Drawing Shapes:
[parameter (placements)]
line(x1,y1,x2,y2);
triangle(x1,y1,x2,y2,x3,y3);
quad(x1,y1,x2,y2,x3,y3,x4,y4);
rect(x, y, width, height); [upper left corner]
ellipse(x, y, width, height); [center]
[method]
arc(x, y, width, height, starting angle, ending angle); [center]
[positive clockwise (in radians)]
[starting angle smaller than ending angle]
[radians -> degrees: radian(angle)]
curve(cx1, cy1, x1, y1, x2, y2, cx1, cy2);
[beginning control point] [ending control point]
find more resources at oneclass.com
find more resources at oneclass.com
You're Reading a Preview

Unlock to view full version

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

Week 2
Transformations, Variables, Methods, and Mouse
Transformations [cumulative]
Translations: [moving the coordinate system]
Drawing without transformation
Drawing with transformation
Shapes use the default top-left corner
for rotation
(moves the entire drawing space when
rotating around)
Creates a new (0,0)
Translate (x, y) [move the drawing
space to (x, y)]
[new (0,0)] [translate before shapes]
e.g. translate (40,200);
rect (0, 0, 40, 40); [same as rect
(40, 200, 40, 40);]
Draw at negative location:
By making the top-left corner negative halves of its width and height, we place
the center at the new (0, 0)
Rotation:
find more resources at oneclass.com
find more resources at oneclass.com
You're Reading a Preview

Unlock to view full version