When playing around with turtle a participant wanted to use RGB colors as described on the turtle page. He was used to enter RGB as 3 values from 0-255. It is not very clear how to do this, he always got this:
TurtleGraphicsError: bad color sequence: (255, 40, 5)
An example might help.
To get it to work, you have to change the color mode of the turtle, then it works:
When playing around with turtle a participant wanted to use RGB colors as described on the turtle page. He was used to enter RGB as 3 values from 0-255. It is not very clear how to do this, he always got this:
An example might help. To get it to work, you have to change the color mode of the turtle, then it works:
See also the turtle documentation about colormode().