Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
Errata: Move to to first point in sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamberta committed Jan 25, 2014
1 parent 73e9c03 commit 0eb13f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions errata.md
Expand Up @@ -55,6 +55,17 @@ Typo in the last sentence, it should read: *You should have
no trouble creating some beautiful pictures or animations
with trigonometry.*

### p. 82, p. 84

In examples `04-multi-curve-1.html` and
`05-multi-curve-2.html`, the code to move to the first point
should read: (Submitted by Gerald Cullen)

~~~
context.beginPath();
context.moveTo(points[0].x, points[0].y);
~~~

### p. 111

A production error caused an errant graphic to obscure
Expand Down
2 changes: 1 addition & 1 deletion examples/ch04/04-multi-curve-1.html
Expand Up @@ -29,7 +29,7 @@

//move to the first point
context.beginPath();
context.moveTo(points[0].x, points[1].y);
context.moveTo(points[0].x, points[0].y);
//and loop through each successive pair
for (i = 1; i < numPoints; i += 2) {
context.quadraticCurveTo(points[i].x, points[i].y,
Expand Down
2 changes: 1 addition & 1 deletion examples/ch04/05-multi-curve-2.html
Expand Up @@ -29,7 +29,7 @@

//move to the first point
context.beginPath();
context.moveTo(points[0].x, points[1].y);
context.moveTo(points[0].x, points[0].y);
//curve through the rest, stopping at each midpoint
for (i = 1; i < numPoints - 2; i++) {
ctrlPoint.x = (points[i].x + points[i+1].x) / 2;
Expand Down

0 comments on commit 0eb13f5

Please sign in to comment.