Download presentation

Presentation is loading. Please wait.

Published byAron Gabriel Mills Modified over 2 years ago

1
Translate, Rotate, Matrix Pages 133-143

2
Function Function Definition Calling a function Parameters Return type and return statement

3
Function concept int z = add(34, 10); // function call add 3410 XY Function definition: int add (int x, int y) // x,y formal parameters { int sum;// sum is a local variable sum = x + y; return sum; } sum

4
translate Translate function moves the origin by the amount specified int x,y; x = 10; y = 10; void draw() { background(30,50,60); pushMatrix(); translate(x,y); rect(0,5,70,30); x++; if (x> width) x = 0; y++; if (y>height) y = 0; popMatrix(); }

5
Leaf & vine example in the book Lets look at the leaf and vine example in the book: pages 191-192

Similar presentations

Presentation is loading. Please wait....

OK

Computer Graphics 3D Transformations. Translation.

Computer Graphics 3D Transformations. Translation.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on do's and don'ts of group discussion rules Ppt on diode as rectifiers Ppt on teachers day quote Ppt on integrated child development scheme Ppt on windows 8 operating system Ppt on world ending in 2012 Ppt on review writing for second Ppt on famous indian entrepreneurs in Thin film transistor display ppt online Ppt on distance formula and midpoint