We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Turtle.js.get/set_heading
NaN
1 parent ef39795 commit 5e613b2Copy full SHA for 5e613b2
Types/Turtle.js/get_heading.js
Types/Turtle.js/heading.js
@@ -0,0 +1,7 @@
1
+function get_heading() {
2
+ const _ = this
3
+ if ( _['#heading'] === undefined ) {
4
+ _['#heading'] = 0.0
5
+ }
6
+ return _['#heading']
7
+}
Types/Turtle.js/set_heading.js
@@ -1,11 +1,9 @@
function set_heading(value) {
- let _ = this
try {
_['#heading'] = new Number(value)
} catch {
-
_['#heading'] = 0.0
8
}
9
10
return _
11
0 commit comments