CHAPTER 14

Transformations


In this chapter we have explored the use of operators to transform drawings stored in data structures.

- Primitive Graphic Commands:

6.1 Square

prog6_1.jpg

  1. size(1024,1024);
  2. line(400,200,700,200);
  3. line(700,200,700,500);
  4. line(700,500,400,500);
  5. line(400,500,400,200);