Errata for Processing for Visual Artists
by Andrew S. Glassner
Published by AK Peters, Inc.
This document is intentionally kept to bare-bones plain text, so it can be read
and distributed easily. The latest version of this page can always be found
on my website, http://www.glassner.com.
You can visit the publisher's page
here,
where you can download the latest version of the source code
(and also order the book!).
Both my publishers and I worked very hard to make this book error free. But we're human,
and inevitably some errors crept in. This file contains all the errors of which I'm aware.
If you find a new one, please let me know so that I can post it for everyone's benefit.
In several places, the version of a sketch that was printed in the book wasn't the final
version that produced the figure. In all cases, the version you can download online is
correct.
In this list I've identified each error with the name of the first person who reported it to me.
Note that I have generally tried to fix each typo in the least intrusive way;
for practical reasons, I generally have tried to avoid rewriting.
Please send new errata to me via the address aquamusic+errata "at" gmail.com
Last updated 11 May 2011
Bug Catchers
Thank you to:
Donna Bretl and
Henk Lamers.
Errata
-
Page 37 / 5th paragraph under Section 3.5 / Henk Lamers
"It it hits" should be "If it hits"
-
Page 174 / Listing for sketch row4.pde / Donna Bretl and Henk Lamers
The book contains an earlier version of the program that does
not create the figure. Please use the online version.
-
Page 175 / Listing for sketch row5.pde / Donna Bretl and Henk Lamers
The book contains an earlier version of the program that does
not create the figure. Please use the online version.
-
Page 177 / Listing for sketch row6.pde / Donna Bretl and Henk Lamers
The book contains an earlier version of the program that does
not create the figure. Please use the online version.
-
Page 182 / Listing for sketch box5.pde / Henk Lamers
The book contains an earlier version of the program that does
not create the figure. Please use the online version.
-
Page 186 / Listing for sketch box7.pde / Henk Lamers
The book contains an earlier version of the program that does
not create the figure. Please use the online version.
-
Page 188 / Listing for sketch box8.pde / Donna Bretl
The listing shows four consecutive calls to drawCircleTo(). Replace the 2nd and 3rd lines with:
drawCircleTo(125, -75);
drawCircleTo(-125, 75);
-
Page 189 / sketch box9.pde / Donna Bretl
Make same change as given above for box8.pde (Page 188)
-
Page 190 / sketch box10.pde / Donna Bretl
Make same change as given above for box8.pde (Page 188)
-
Page 191 / sketches scale1.pde and scale2.pde / Donna Bretl
Make same change as given above for box8.pde (Page 188)
-
Page 192 / sketch scale3.pde / Donna Bretl
Make same change as given above for box8.pde (Page 188)
-
Page 203 / First listing / Henk Lamers
Replace screen(500, 500); with size(500, 500);
-
Page 205 / 10 lines from bottom / Henk Lamers
Replace screen(500, 500); with size(500, 500);
-
Page 208 / lines 2 and 3 of listing for spinners3.pde / Donna Bretl
The 2nd and 3rd lines of drawCircles are incorrect (these are the lines starting with stroke and fill). Replace them with:
stroke(0, 0, 0);
fill(89, 9, 21);
-
Pages 209-214 / spinners4.pde to spinners7.pde / Donna Bretl
The line "int MaxDepth=4;" is not necessary and may be removed from these sketches.
-
Page 211 / Listing for sketch spinners5.pde / Henk Lamers
The routine drawCircles in the book listing has the
old color-choosing code, before the improvement at the
bottom of page 210.
Please use the online version.
-
Page 213 / Listing for sketch spinners6.pde / Henk Lamers
The routine drawCircles in the book listing has the
old color-choosing code, before the improvement at the
bottom of page 210.
Please use the online version.
-
Page 220 / Listing for sketch recurbox04.pde / Donna Bretl
In the routine handleBox(), change "fill(gray);" to "fill(clr);"
-
Page 240 / Listing missing in online archive / Donna Bretl
Listing for random/sketches/arraybug1/arraybug1.pde added to the online sources.
-
Page 243 / Incorrect file for noise02.pde / Donna Bretl
Online file now matches listing in the book.
-
Page 254 / Listing for sketch noise02.pde / Donna Bretl
Listing for random/sketches/doArraySkeleton/doArraySkeleton.pde added to the online sources.
-
Page 584 / 3 lines from bottom / Henk Lamers
Delete extra [ so the line reads
float [][] Distance;
-
Page 608 / First code listing / Henk Lamers
In line 5, replace "d > radius" with "d > r"
-
Page 610 / last line on page, listing for blob3.pde / Henk Lamers
The line starting "float newRed" should have a semicolon at the end.
-
Page 611 / lines 2 and 3, listing for blob3.pde / Henk Lamers
The lines starting "float newGrn" and "float newBlu" should each have a semicolon at the end.
-
Page 642 / 4th line of second listing for blob12.pde / Henk Lamers
Replace "ColdWax.length" with "Wax.length"
-
Page 658 / line 13 of first listing for goldfish05.pde / Henk Lamers
Delete the "f", so "scl*-fy[i]" becomes "scl*-y[i]"
-
Page 759 / last line / Henk Lamers
Replace "GridY" with "GridZ"
-
Page 816 / 5 lines from end of listing / Henk Lamers
The line ends with two semicolons. This won't produce an error, but it's superfluous,
and one of the semicolons may (and should) be deleted.
End of Errata