Skip to content

Commit 221ae8c

Browse files
committed
Make a note about RGB colours, fix docs link
- Fixes OpenTechSchool#35 - Point to python 3 docs by default
1 parent 2569860 commit 221ae8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/simple_drawing.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ key to exit the pager.
157157

158158
Another way to find out about functions is to browse the `online documentation`_.
159159

160-
.. _online documentation: http://docs.python.org/library/turtle
160+
.. _online documentation: http://docs.python.org/3/library/turtle
161161

162162

163163
.. caution::
@@ -173,6 +173,10 @@ Another way to find out about functions is to browse the `online documentation`_
173173
"red," "green," and "violet." See the `colours manual`_ for an extensive
174174
list.
175175

176+
If you want to set an RGB value, make sure to run ``turtle.colormode(255)``
177+
first. Then for instance you could run ``turtle.color(250, 0, 0)`` to set
178+
a red colour.
179+
176180
.. _colours manual: http://www.tcl.tk/man/tcl8.5/TkCmd/colors.htm
177181

178182
Drawing a rectangle

0 commit comments

Comments
 (0)