Posts

Showing posts from July, 2021

Draw Virat Kohli's Cartoon face using python turtle graphics

Image
 In this Article I'll share the Source Code to draw Virat kohli's Cartoon face using python turtle graphics.  Source Code:- from turtle import * vk=Turtle() s=Screen() s.bgcolor("NavajoWhite2") vk.speed(1) vk.penup() vk.setposition(0,-200) vk.pendown() vk.begin_fill() vk.color('black') vk.right(75) vk.circle(100,90) vk.right(13) vk.forward(180) vk.circle(100,90) vk.forward(80) vk.right(-200) vk.circle(40,-90) vk.circle(80,-26) vk.right(90) vk.forward(140) vk.circle(50,90) vk.right(80) vk.circle(200,30) vk.right(120) vk.circle(1000,-26) vk.right(85) vk.circle(110,95) vk.right(-140) vk.backward(30) vk.right(60) vk.backward(50) vk.speed(1) vk.right(20) vk.forward(63) vk.right(120) vk.speed(1) vk.circle(50,45) vk.right(-30) vk.forward(240) vk.right(95) vk.circle(300,34) vk.right(40) vk.forward(50) vk.left(10) vk.forward(80) vk.right(90) vk.forward(150) vk.right(95) vk.backward(60) vk.right(-30) vk.forward(50) vk.speed(1) vk.right(-30) vk.forward(100) vk.right(80) ...

Draw a Carromboard using python turtle graphics

Image
In this Article I'll share the source Code to draw A carromboard using Python turtle graphics. I hope that you will like it and share with those who need it.  Source Code :- def squares(x,y,f,p,c):  t.speed(0)  t.up()  t.goto(x,y)  t.down()  t.begin_fill()  t.pensize(p)  t.pencolor(c)  t.fillcolor(c)  for i in range(4):   t.forward(f)   t.left(90)  t.end_fill() def outline(x,y,f,p,c):  t.speed(0)  t.up()  t.goto(x,y)  t.down()  t.pensize(p)  t.pencolor(c)  for i in range(4):   t.forward(f)   t.left(90) def circlefill(x,y,r,c):   t.speed(0)   t.up()   t.goto(x,y)   t.down()   t.begin_fill()   t.fillcolor(c)   t.circle(r)   t.end_fill()   def circlefillout(x,y,r,c):   t.speed(0)   t.up()   t.goto(x,y)   t.down()   t.pencolor(c)   t.begin_fill()   t.fillcolor(c)   t.circle(r)   t.end_fill...

Draw 3d shape with python turtle

Image
 In this article I'll share the source code to draw this beautiful 3d image using python turtle graphics.  Source code :- import turtle as t pen = t.Turtle() pen.color('cyan') pen.speed(0) screen=t.Screen() screen.bgcolor('black') def draw_square():     for side in range(4):         pen.forward(100)         pen.right(90)         for side in range(4):             pen.forward(50)             pen.right(90) pen.penup() pen.back(20) pen.pendown() for square in range(80):     draw_square()     pen.forward(5)     pen.left(5) Output :- Share your thoughts in comment box below.