Concentric circle Get link Facebook X Pinterest Email Other Apps April 04, 2024 import turtlet=turtle.Turtle( )r=12for i in range(20):t.speed(50)t.circle(r*i)t.up( )t.sety( (r*i)*(-1) )t.down( )Note:- line (5-9) use one tab Get link Facebook X Pinterest Email Other Apps Comments
Floodfill function April 04, 2024 from PIL import Image,Image Draw img=Image.open(R"c://ss.jpg") img1=img.convert("RGB") seed=(263,70) rep=(255,255,0) ImageDraw.floodfill(img,seed,rep,thresh=50) img.show( ) Read more
Rectangle function April 04, 2024 import turtle t=turtle.Turtle() t.forward(150) t.left(90) t.forward(80) t.left(90) t.forward(150) t.left(90) t.forward(80) t.left(90) Read more
Elipse function April 04, 2024 import turtle def draw(red): for i in range(2): turtle.circle(red,90) turtle.circle(red//2,90) turtle.seth(-45) draw(100) Read more
Comments
Post a Comment