Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytra authored Apr 27, 2020
1 parent 4594032 commit 22bd873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ The parser supports comments, but only at the end of the line.

Example: `"N 4 # this is a comment"`

The `"P"` command sets the colour, and takes a value in the range 0 through 2. This corresponds to Red, Green or Blue.
The `"P"` command sets the colour, and takes RGB values in this form: `"P 255 255 255"`

The following TurtleScript code will draw a hollow square on screen.

```
# start of file
P 0 # select red pen
P 255 0 0 # select red pen
D # pen down
W 5 # go west (left) 5 positions
N 5 # go north (up) 5 positions
Expand Down

0 comments on commit 22bd873

Please sign in to comment.