Remarks: Processing Mazes

From Maze

(Difference between revisions)
Jump to: navigation, search
Line 8:Line 8:
The line endings are a subtle, but crucial change within this program. In the original 10 PRINT image (see fig ??), notice how each line terminates into a point. This is required because each of the 40 x 25 tiles that comprise the image are constrained to its 8 x 8 pixels area. This is is created by tiling these lines, fixed into their 64 pixels boxes. In the Processing program, each line is free to extend beyond and into the other lines area. This is because the lines are defined by x- and y-coordinates (precise locations on screen) rather than tile positions. Any number of shapes and colors can appear at any given pixel on screen.
The line endings are a subtle, but crucial change within this program. In the original 10 PRINT image (see fig ??), notice how each line terminates into a point. This is required because each of the 40 x 25 tiles that comprise the image are constrained to its 8 x 8 pixels area. This is is created by tiling these lines, fixed into their 64 pixels boxes. In the Processing program, each line is free to extend beyond and into the other lines area. This is because the lines are defined by x- and y-coordinates (precise locations on screen) rather than tile positions. Any number of shapes and colors can appear at any given pixel on screen.
 +
 +
[MORE: Add text about the use of \ and / characters and how they make it work.]
The second Processing version of 10 PRINT took more liberties with 10 PRINT. Most importantly, the number of rows and columns in the grid were variable, the direction of the line defined its color (black or white), each line was defined as a quadrilateral to give more flexibility of the shape, and a third color was used for the background. Each time the code is run, the size of the grid unit is defined at random as a power of 2 (2, 4, 8, 16, or 32) and the thickness of each line is set by a random number. Figures ?? to ?? show some of the varied results. With the ability to further define the graphics, the code became longer than the C64 one-liner 10 PRINT with the enhanced precision and variability:
The second Processing version of 10 PRINT took more liberties with 10 PRINT. Most importantly, the number of rows and columns in the grid were variable, the direction of the line defined its color (black or white), each line was defined as a quadrilateral to give more flexibility of the shape, and a third color was used for the background. Each time the code is run, the size of the grid unit is defined at random as a power of 2 (2, 4, 8, 16, or 32) and the thickness of each line is set by a random number. Figures ?? to ?? show some of the varied results. With the ability to further define the graphics, the code became longer than the C64 one-liner 10 PRINT with the enhanced precision and variability:

Revision as of 12:36, 8 July 2011

View this revision of Remarks: Processing Mazes.

Personal tools