#funwithpython #rainbowspiral #pythonturtle
Rainbow-Spiral - Python Turtle
Turtle:
“Turtle” is a python library which has a pointing device(turtle) and a canvas, which lets you command a turtle to make shapes. It is a useful library from which beginners can start with. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967.
Rainbow Spiral :
Turtle Methods Used:
1. turtle.fd(distance): Move the turtle forward by the specified distance
2. turtle.rt(angle): Turn turtle right by angle units.
3. turtle.pencolor(r,g,b) : Set pencolor to the RGB colour represented by r, g, and b.
4. turtle.bgcolor("[color]") :Set or return background colour of the TurtleScreen.
5. turtle.colormode(cmode=255) :r, g, b values of colour triples have to be in the range 0..cmode.
6. turtle.title(titlestring): Set title of turtle window to titlestring.
7. turtle.speed(speed=5) : Set the turtle’s speed to an integer value in the range 0..10.
For code and more info check:
https://github.com/dwinkwink123/Rainb...
LEARNING IS FUN
Instagram: / __dwink_
GitHub: https://github.com/dwinkwink123
Telegram : https://t.me/dwinkwink123