Draw white square with black outline at (x, y).
(x, y)
| 9 | |
| 10 | |
| 11 | def square(x, y): |
| 12 | "Draw white square with black outline at (x, y)." |
| 13 | up() |
| 14 | goto(x, y) |
| 15 | down() |
| 16 | color("black", "white") |
| 17 | begin_fill() |
| 18 | for count in range(4): |
| 19 | forward(50) |
| 20 | left(90) |
| 21 | end_fill() |
| 22 | |
| 23 | |
| 24 | def index(x, y): |