What is Python, What is Python Programming language, Why Python, What is Python used for, Python 3, 10 reason why should you learn Python , Why python is best for beginner in programming, Learn Python for free
3D Design Using Python
Hey guys, hope you enjoyed this video and knew something about turtle module and 3D designing in Python also. So make sure to hit the like and subscribe button and also share this video to your friends and family so that they can also get some knowledge about this
If you don't know anything or something about turtle module then comment me, I will surely make a full tutorial on it :)
If you have any doubt then feel free to ask :)
Video's Link
Source Code
import turtle as t
import colorsys
t.bgcolor("black")
t.speed("fastest")
t.pensize(2)
t.setpos(50, 0)
hue = 0.0
t.hideturtle()
for i in range(400):
color = colorsys.hsv_to_rgb(hue, 1, 1)
t.pencolor(color)
hue += 0.005
t.fd(i)
t.bk(i)
t.lt(1)
t.rt(120)
for j in range(1):
t.bk(i)
t.right(120)
t.forward(100)
t.right(120)
t.right(120*2+0.1)
t.tracer(30)
t.exitonclick()
Comments
Post a Comment