| Enter/Return | Submit code |
| Ctrl + Enter | Newline |
| Up / Down | Browse history |
| Ctrl + l | Clear display |
| Ctrl + k | Reset toplevel |
| Tab | Indent code |
| Circle (with radius 50) | |
| Rectangle (with length 100, width 50) | |
Show shapes c and r on canvas
|
|
| Clear canvas | |
Transformations |
|
|---|---|
Move c to the right by 50, and up by 100
|
|
Move c to the right by 50, and down by 100
note that we put -100 in its own parentheses. we need to do this for negative numbers |
|
Make c 2 times bigger
note the decimal 2.0, it's a float!
|
|
Make c half as small
|
|
Rotate a rectangle r by 18 degrees
|
|
Rotate a rectangle r by 18 degrees, 10 times
|
|
Rotate a rectangle r by 18 degrees and scale it by 0.8 in one transformation
|
|
Rotate a rectangle r by 18 degrees and scale it by 0.8, 10 times
|
|
More shapes! |
|
| Ellipse (with x-radius 100, y-radius 50) | |
| Line (from origin to (-50, 50)) | |