CHAPTER 13

Storing Pictures: Data Structures


Different structures are appropriate for different purposes. The possibilities range from very simple but very limited and inflexible structures to very flexible structures that require more sophisticated programming.

- 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);