Skip to main content

Posts

Featured posts

Sketchpy Python Library | How to use and How to Install

Recent posts

Python Turtle Graphics Avengers Logo

How to make Avengers Logo using Python Turtle Graphics In this blogpost I will show you how to make famous avengers logo using python turtle graphics in python programming. It is very easy to draw if you have knowledge about python turtle graphics. What is Pyhon Turtle Graphics?   Turtle is a pre-installed Python library that enables users to create pictures and shapes by providing them with a virtual canvas. You can draw anything in python turtle graphics using commands. I have also made a tracer code in python programming which allows you to trace the x and y coordinates of any image and after tracing the coordinates you can easily put these coordinates in python turtle code and draw anything you want. Python Libraries Needed : Turtle Graphics INSTALLATION : Turtle is a pre-installed library. If it is not pre-installed in your system then, Run the following command in terminal or cmd   pip install turtle Source Code : Here is the source code.You can copy this code from here and

Jr. NTR Drawing using Python Turtle Graphics

Jr.NTR Drawing using Python Turtle Graphics | RRR Movie Hero Drawing  Note : If you are facing any issues to copy this code then click select all while copying the code. After that extract the code from the copied text. {Your mobile may lag for 3-5 seconds when you hold the code to copy,it is because the coordinates in the code are so long. Don't worry just wait 3-5 seconds after holding the text and click select all and copy the full page and paste it to your editor and from there copy the code} Source Code : import turtle as tu tu.bgcolor("orange red") class googlemapslogo: def __init__(self): self.hairbeard =[(302, 221) ,(301, 231) ,(300, 238) ,(297, 246) ,(296, 254) ,(299, 265) ,(302, 274) ,(305, 284) ,(307, 294) ,(306, 303) ,(312, 312) ,(318, 320) ,(325, 324) ,(329, 328) ,(332, 336) ,(334, 343) ,(334, 354) ,(337, 346) ,(339, 352) ,(343, 346) ,(343, 343) ,(345, 336) ,(350, 330) ,(357, 328) ,(361, 325) ,(356, 325) ,(365, 324) ,(369, 323) ,(374, 322) ,(38

Rocking Star YASH Drawing using Python Turtle Graphics

Rocking Star YASH Drawing using Python Turtle Graphics | Rocky Bhai | KGF Chapter 2 | Python Programming | Note : If you are facing any issues to copy this code then click select all while copying the code. After that extract the code from the copied text. {Your mobile may lag for 3-5 seconds when you hold the code to copy,it is because the coordinates in the code are so long. Don't worry just wait 3-5 seconds after holding the text and click select all and copy the full page and paste it to your editor and from there copy the code} Source Code : import turtle as tu class rockingstaryash: def __init__(self): self.r =[(12, 336) ,(17, 296) ,(27, 236) ,(34, 186) ,(41, 141) ,(54, 75) ,(117, 76) ,(132, 82) ,(143, 94) ,(149, 114) ,(149, 137) ,(145, 156) ,(141, 171) ,(136, 183) ,(123, 199) ,(102, 210) ,(106, 230) ,(110, 248) ,(115, 270) ,(120, 290) ,(125, 309) ,(129, 336) ,(94, 338) ,(65, 210) ,(46, 336) ,(12, 336)] self.r1 =[(83, 104) ,(80, 123) ,(76, 145) ,(73, 164

Draw anyone's Sketch using Python Turtle Graphics in Python Programming

Draw anyone's Sketch using Python Turtle Graphics in Python Programming 👨‍💻🔥 In this post ,I will tell you about How to make Anyone's Sketch in Python using svg file and using these libraries: Turtle,cv2(opencv-python),svgpathtools,svg.path and tqdm. You can install these libraries using pip command. Turtle is pre-installed in mostly all programming softwares. And here are the pip commands to install other libraries : pip install opencv-python pip install svgpathtools pip install svg.path pip install tqdm 𝗦𝘁𝗲𝗽𝘀 𝘁𝗼 𝗺𝗮𝗸𝗲 𝘀𝗸𝗲𝘁𝗰𝗵 :  1)Go to https://svgconvert.com/#/  2)Upload the image and change the threshold value according to the image and download it as a svg file.  3)Save the code and svg file in the same folder.  Source Code : import turtle as tu import cv2 from svgpathtools import svg2paths2 from svg.path import parse_path from tqdm import tqdm class sketch_from_svg: def __init__(self,path,scale=30,x_offset=400,y_offset=400): self.path =

Robert Downey Jr - Tony Stark - Ironman Sketch using Python Turtle Graphics

Robert Downey Jr Sketch using Python Turtle Graphics 👨‍💻 About Python Turtle Graphics : Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967. Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an import turtle , give it the command turtle. Note: If you are facing any issue to copy the code then copy the full page clicking 'select all',paste it to your notepad and copy the code from there. Here is the source code : import turtle as tu class rdj: def __init__(self): self.mouth = [(374, 382),(368, 382),(359, 382),(347, 379),(339, 381),(334, 384),(323, 380),(315, 380),(293, 385),(321, 387),(339, 387),(345, 386),(357, 385),(374, 383),(-1, -1),(389, 389),(393, 387),(395, 381),(395, 373),(377, 362),(366, 357),(358, 360),(351, 357),(345, 354),(344, 357),(337, 355),(333, 357),(327, 355),(323, 357),(303, 362),(

Beautiful 3D Design using Python Turtle Graphics 🔥🔥

Beautiful 3D Design using Python Turtle Graphics 🔥🔥 Source Code :- import turtle as t import colorsys ############### t.bgcolor('black') t.speed('fastest') t.pensize(2) hue=0.0 t.hideturtle() ############### for i in range (1000): color = colorsys.hsv_to_rgb(hue,1,1) t.pencolor(color) t.fd(i) t.rt(98.5) t.circle(50) hue +=0.005 t.exitonclick() Output               Note:-  Subscribe my Youtube Channel " Vast Coding "👈 Click on it.

Vibrant Circle using Python Turtle Graphics | Corona Shape using Python Turtle | Python Project | Vast Coding

Vibrant Circle using Python Turtle Graphics,Corona Shape using Python Turtle,Python Project | Vast Coding   Here is the Source Code :-  Vibrant Circle.py import turtle t = turtle.Turtle() s = turtle.Screen() s.bgcolor('black') t.pencolor('red') a = 0 b = 0 t.speed(0) t.penup() t.goto(0,200) t.pendown() while True: t.forward(a) t.right(b) a+=3 b+=1 if b==210: break t.hideturtle() turtle.done() Output :- Output Note:- Please help me to grow my Youtube Channel called " Vast Coding "

Balloon Shooter Game using Python | Python Project | Simple Python Game | Vast Coding

Balloon Shooter Game using Python | Python Project | Simple Python Game | Vast Coding   " You can download the source code by the download button at the end of this page "    Here is the Source Code:- Balloon Shooter2.py import pygame import sys import random from math import * pygame.init() width = 720 height = 1200 display = pygame.display.set_mode((width, height)) pygame.display.set_caption("Balloon Shooter") clock = pygame.time.Clock() margin = 100 lowerBound = 100 score = 0 # Colors white = (230, 230, 230) lightBlue = (174, 214, 241) red = (231, 76, 60) lightGreen = (25, 111, 61) darkGray = (40, 55, 71) darkBlue = (21, 67, 96) green = (35, 155, 86) yellow = (244, 208, 63) blue = (46, 134, 193) purple = (155, 89, 182) orange = (243, 156, 18) font = pygame.font.SysFont("Snap ITC", 25) # Balloon Class class Balloon: def __init__(self, speed): self.a = random.randint(30, 40) self.b = self.a + random.randint(0, 10) self