From 22bd8739df20dfe3729084d75660bed7d85a654c Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Mon, 27 Apr 2020 16:13:36 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7bfaab8..4965166 100644 --- a/README.md +++ b/README.md @@ -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