Class Notes (836,148)
IAT 265 (12)
Lecture

# IAT265 Processing Basics and Drawing.docx

3 Pages
126 Views

School
Department
Interactive Arts & Tech
Course
IAT 265
Professor
Matt Lockyer
Semester
Winter

Description
Processing Basics and Drawing Overview Processing’s coordinate system is in quadrant one except y values are reflected across y axis -positive y values are increasing down the window -the top left corner of the sketch is (0, 0) -the center of the sketch is (width/2, height/2) -the bottom right corner of the sketch is (width, height) void setup-run only once in the beginning void draw-method called 60fps which draws current frame on screen over and over frame rate-used to control an application -can be used as a time -the higher the frame rate, the smoother Shapes point (x, y); line(x1, y1, x2, y2); -x1, y1 arguments are the location of the start point of the line -x2, y2 arguments are the location of the endpoint of the line ellipse(x, y, width, height); -x, y arguments are the location of the center of the ellipse -width, height arguments are how wide and tall the ellipse will be around the center however, if ellipseMode(CORNER); is specified before drawing ellipse, properties will be the same as rect -ellipseMode(CENTER); does not need to be specified unless you want to override an ellipse drawn with ellipseMode(CORNER); rect(x, y, width, height); -x, y arguments are the location of the top left corner of the rectangle -width, height arguments are how wide (right) and how tall (down) the rectangle will be however, if rectMode(CENTER); is specified before drawing rect, properties will be the same as ellipse -rectMode(CORNER); does not need to be specified unless you want to override a rect drawn with rectMode(CENTER); triangle(x1, y1, x2, y2, x3, y3); -x, y arguments corresponds to each point in the triangle quad(x1, y1, x2, y2, x3, y3, x4, y4); -x, y arguments corresponds to each point in the quad arc(x1, y1, width, height, start, stop ); -the first four arguments are just like an el
More Less

Related notes for IAT 265
Me

OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Join to view

OR

By registering, I agree to the Terms and Privacy Policies
Just a few more details

So we can recommend you notes for your school.