turtle.colormode()
¶
-
turtle.
colormode
(cmode=None)¶ Return the colormode or set it to 1.0 or 255.
Optional argument: cmode – one of the values 1.0 or 255
r, g, b values of colortriples have to be in range 0..cmode.
Example: >>> colormode() 1.0 >>> colormode(255) >>> pencolor(240,160,80)