ABSTRACT

This chapter gives a foundation in drawing with Processing to understand the graphical examples. Saving a program in Processing is very much the same process as saving work in other software. Processing has many built-in functions that are available for use. The size() function sets the size of the canvas. Drawing a "point" at a specific pixel location using the point() function. Using the line() function line segments can also be drawn in Processing. Processing provides the ability to draw a rectangle on the canvas using the rect() function. Processing also makes it easy for to draw ellipses using the ellipse() function. The triangle() function allows to draw a triangle simply by specifying three pixel locations on the canvas, each one corresponding to one of the three vertices of that triangle. Processing allows to draw with colors. Processing also provides a built-in tool for determining the RGB numbers of a particular color.