Permalink
Browse files

_angle changed to dir

  • Loading branch information...
1 parent 406cfbb commit b349df720dba4a0619006a2adcc06a39a054e5f2 @davebalmer committed Dec 26, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 pen.html
View
@@ -73,15 +73,15 @@
}
for (var i = 0; i < 18; i++) {
// pen color change for a little pazazz
- p.fillstyle(hsvtorgb(p._angle + 60, 1, .9));
+ p.fillstyle(hsvtorgb(p.dir + 60, 1, .9));
p.ray(1000, 10).turn(20);
}
p.turn(10);
for (var i = 0; i < 18; i++) {
// pen color change for a little pazazz
- p.fillstyle(hsvtorgb(p._angle - 60, 1, .9));
+ p.fillstyle(hsvtorgb(p.dir - 60, 1, .9));
p.ray(1000, 10).turn(20);
}
@@ -104,7 +104,7 @@
p.jump(600, 250);
for (var i = 0; i < 18; i++) {
// pen color change for a little pazazz
- p.penstyle(hsvtorgb(p._angle, 1, .9));
+ p.penstyle(hsvtorgb(p.dir, 1, .9));
// draw a spiro, then rotate a bit
p.penup().go(100).pendown().spiro().penup().back(100).turn(20).draw();

0 comments on commit b349df7

Please sign in to comment.