We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Turtle.js.step
1 parent 89a08b7 commit 7251b6bCopy full SHA for 7251b6b
1 file changed
Types/Turtle.js/step.js
@@ -0,0 +1,7 @@
1
+function step(dx,dy) {
2
+ if (this.isPenDown) { this.steps.push(` l ${dx} ${dy} `) }
3
+ else { this.steps.push(` m ${dx} ${dy} `) }
4
+ this.x += dx; this.y += dy ; this.resize()
5
+ return this
6
+}
7
+
0 commit comments