O'Reilly logo

Processing Creative Coding and Computational Art by Ira Greenberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6 LINES

This chapter will concentrate on lines and how they are represented though code. You'll also look at how lines can represent more multidimensional space, such as shapes and volume.

It's all about points

Before you can understand a line, you need to move back one dimension and take a look at points. Here is arguably the simplest graphic program you can write in any language (see Figure 6-1):

point(50, 50);
image

Figure 6-1. Single-point sketch

I mentioned before in the book that a point really has no dimension. Wikipedia says of points: "A point in Euclidean geometry has no size, orientation, or any other feature except position." Thus, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required