IAT 167 Lecture Notes - Lecture 2: Data Type

77 views5 pages

Document Summary

Shapes use the default top-left corner for rotation (moves the entire drawing space when rotating around) Translate (x, y) [move the drawing space to (x, y)] Rect (0, 0, 40, 40); [same as rect (40, 200, 40, 40);] By making the top-left corner negative halves of its width and height, we place the center at the new (0, 0) Scale (float size ): scaling the drawing space by the factor. [x: percentage to scale along x-axis] [y: percentage to scale along y-axis] Implentation: use pushmatrix() to save all the info about the current drawing space, use popmatrix() to return back to the previous state of the drawing space. Storage location that can hold some value. Float :decimal numbers between -3. 4-282347e+38 and 3. 40282347e+38. Boolean :holds value true or false: reference data. Create a variable by specifying the variable type and name. Initialize a value so the variable holds data [variable is assigned with a value]

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents