DEV Community

SHAMEEM ALI
SHAMEEM ALI

Posted on

Turtle studies

today notes

Turtle Graphics
1.screen usage
2.change color of the turtle logo
3.Tkinder with GUI
4.Aliasing modules (as)
eg : import tkinder as tk
5.Pyhton Tuples
tuple like as stone you can't change the values , it is immutable
usage of Tuple
-creating a color scheme for your web site
-a list thst you to stay constant

to convert in list
list(my_tuple)
6.colormode() This function is used to return the color mode or set it to 1.0 or 255. (r, g, b) values of color triples have to be in range 0 to c mode

Extra studies

  1. double quotes are used for string representation and single quotes are used for regular expressions, 2.turtle.setheading(angle): Sets the orientation of the turtle to angle. Here are some common directions in degrees: 0 (east), 90 (north), 180 (west), 270 (south).

Top comments (0)