IAT 167 Lecture Notes - Lecture 1: Ellipse, Radian

40 views1 pages

For unlimited access to Class Notes, a Class+ subscription is required.

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]
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$10 USD/m
Billed $120 USD annually
Homework Help
Class Notes
Textbook Notes
40 Verified Answers
Study Guides
1 Booster Class
Class+
$8 USD/m
Billed $96 USD annually
Homework Help
Class Notes
Textbook Notes
30 Verified Answers
Study Guides
1 Booster Class