Graphic design python turtle 🐢

from turtle import * import colorsys bgcolor('black') pensize(0) tracer(50) h=0 for i in range(300): c=colorsys.hsv_to_rgb(h,1,1) h+=0.9 color(c) forward(300) left(100) fd(i) goto(0,0) down() rt(90) begin_fill() circle(0) end_fill() rt(10) for j in range(5): rt(30) done() Please follow my blog and subscribe my channel for more videos and newly updates 👍👍👍👍👍 import turtle as t import colorsys t.bgcolor('black') t.tracer(100) h=0.4 def draw(ang,n): t.circle(5+n,60) t.left(ang) t.circle(5+n,60) for i in range(200): c=colorsys.hsv_to_rgb(h,1,1) h+=0.005 t.color(c) t.pensize(2) draw(90,i*2) draw(120,i*2.5) draw()

Python turtle 🐢 create flower using python turtle 🐢


Create flower using python turtle 🐢 graphic design flower using python turtle



import turtle as t

import colorsys as ca
t.bgcolor('white')
t.tracer(100)
h=0.2
def design():
    global h
    for i in range(4):
        for i in range(4):
            color=ca.hsv_to_rgb(h,1,1)
            h+=0.2
            t.fillcolor(color)
            t.begin_fill()
            t.fd(10)
            t.rt(80)
            t.fd(150)
            t.lt(12)
            t.end_fill()
for j in range(400):
    design()
    t.goto(8,8)
    t.rt(18)
t.done()

Youtube Link:-
https://youtu.be/i08QC4dEPbU


Comments

Popular posts from this blog

Introduction of machine learning, Need and Important Terms of machine learning.

Hypertext Transfer Protocol Request and Response Methods