Posts

Showing posts from February, 2023

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()

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()

How to create rainbow 🌈

  Create rainbow using turtle python graphic design rainbow 🌈 import turtle mypen=turtle.Turtle() mypen.shape('turtle') mypen.speed(10) window=turtle.Screen() window.bgcolor('black') rainbow=['red','orange','yellow','green','blue','indigo','violet'] size=180 mypen.penup() mypen.goto(0,-180) for color in rainbow: mypen.color(color) mypen.fillcolor(color) mypen.begin_fill() mypen.circle(size) mypen.end_fill() size-=20 turtle.done

Create rainbow using python turtle 🐢

Image
Create rainbow using python turtle 🐢🐢 graphic design rainbow 🌈 import turtle sc=turtle.Screen() pen=turtle.Turtle() def semi_circle(col,rad,val): pen.color(col) pen.circle(rad,180) pen.up() pen.setpos(val,0) pen.down() pen.right(-180) col=['violet','indigo','blue','green','yellow','orange','red'] sc.setup(800, 800) sc.bgcolor('black') pen.right(90) pen.width(10) pen.speed(7) for i in range(7): semi_circle(col[i], 10*(i+8),-10*(i+1)) pen.hideturtle() I hope guys this program is useful for you and informative. Please keep supporting me gyc and don't forget to follow my blog if you have any questions please feel free to comment me. Youtube Link:- https://youtu.be/jZNQfXWMuME https://youtu.be/zKTVnzoyqlw