Skip to main content

Posts

Showing posts from October, 2021

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

Carrom Board Game using Python | Simple Python Project | Vast Coding

Carrom Board Game using Python | Simple Python Project | Vast Coding   Here is the Source Code :- Note:- If you are facing any issues to copy the code,like:-"Failed to copy to the clipboard"  Then copy it in two or three parts.   import pygame, sys,math from pygame.locals import * from math import * pygame.init() screen = pygame.display.set_mode((600, 600)) background=(255,255,255) screen.fill(background) pygame.display.set_caption("Carrom") width=535 height=535 friction=0.2 border=65 mod = lambda v: sqrt(v[0] * v[0] + v[1] * v[1]) black=(0,0,0) player1_color=(40,40,40) player2_color=(180,180,180) white=(255,255,255) yellow=(255,255,0) pink=(255,20,147) def repaint(): pygame.draw.rect(screen,(0,0,0),Rect((40,40),(520,520))) pygame.draw.rect(screen,(230,210,140),Rect((65,65),(470,470))) pygame.draw.rect(screen,(0,0,0),Rect((180,140),(240,20))) pygame.draw.rect(screen,(230,210,140),Rect((185,145),(230,10))) pygame.draw.circle(screen,(139,0,0

Flappy Bird Game using Python 🔥🔥 Python in Pydroid3 | Amazing Python Project | Vast Coding

Flappy Bird Game using Python 🔥🔥 Python in Pydroid3 | Amazing Python Project | Vast Coding                                    Here is the Source Code:- main.py import pygame import random from objects import Grumpy, Pipe, Base, Score # Setup ******************************************* pygame.init() SCREEN = WIDTH, HEIGHT = 288, 512 display_height = 0.80 * HEIGHT info = pygame.display.Info() width = info.current_w height = info.current_h if width >= height: win = pygame.display.set_mode(SCREEN, pygame.NOFRAME) else: win = pygame.display.set_mode(SCREEN, pygame.NOFRAME | pygame.SCALED | pygame.FULLSCREEN) # win = pygame.display.set_mode(SCREEN, pygame.SCALED | pygame.FULLSCREEN) clock = pygame.time.Clock() FPS = 60 # COLORS RED = (255, 0, 0) WHITE = (255, 255, 255) BLACK = (0, 0, 0) # Backgrounds bg1 = pygame.image.load('Assets/background-day.png') bg2 = pygame.image.load('Assets/background-night.png') bg = random.choice([bg1, bg2]) im_list = [pygame.

One Plus 1+ Logo using Python Turtle Graphics | Python Project | Vast Coding

One Plus Logo using Python Turtle Programming | Simple Python Project | Vast Coding  Source Code Credit:- SUBHANKER CODES  ðŸ‘ˆ(Click to redirect on his YouTube Channel) Here is the Source Code:- import turtle as t t.speed(3) t.bgcolor('black') t.up() t.pencolor('red') t.fillcolor('red') t.setpos(200,20) t.rt(90) t.down() t.begin_fill() t.fd(300) t.rt(90) t.fd(500) t.rt(90) t.fd(500) t.rt(90) t.fd(300) t.rt(90) t.fd(40) t.rt(90) t.fd(260) t.lt(90) t.fd(420) t.lt(90) t.fd(420) t.lt(90) t.fd(260) t.rt(90) t.fd(40) t.lt(90) t.end_fill() t.up() t.fd(60) t.down() t.begin_fill() t.fd(100) t.rt(90) t.fd(100) t.lt(90) t.fd(40) t.lt(90) t.fd(100) t.rt(90) t.fd(100) t.lt(90) t.fd(40) t.lt(90) t.fd(100) t.rt(90) t.fd(100) t.lt(90) t.fd(40) t.lt(90) t.fd(100) t.rt(90) t.fd(100) t.lt(90) t.fd(40) t.end_fill() t.up() t.rt(180) t.fd(250) t.down() t.begin_fill() t.fd(80) t.lt(90) t.fd(40) t.lt(90) t.fd(50) t.rt(90) t.fd(160) t.rt(90) t.fd(50) t.lt(90) t.fd(40) t.lt(90) t.fd(140

Netflix Logo using Python Turtle Programming | Simple Python Project | Vast Coding

Netflix Logo using Python Turtle Programming | Simple Python Project | Vast Coding   Here is the Source Code :- import turtle t = turtle.Turtle() t.speed(10) turtle.bgcolor("white") t.color("white") t.up() t.goto(-80,50) t.down() t.fillcolor("black") t.begin_fill() t.forward(200) t.setheading(270) s = 360 for i in range(9): s = s - 10 t.setheading(s) t.forward(10) t.forward(180) s = 270 for i in range(9): s = s - 10 t.setheading(s) t.forward(10) t.forward(200) s = 180 for i in range(9): s = s - 10 t.setheading(s) t.forward(10) t.forward(180) s = 90 for i in range(9): s = s - 10 t.setheading(s) t.forward(10) t.forward(30) t.end_fill() t.up() t.color("black") t.setheading(270) t.forward(240) t.setheading(0) t.down() t.color("red") t.fillcolor("#E50914") t.begin_fill() t.forward(30) t.setheading(90) t.forward(180) t.setheading(180) t.forward(30) t.setheading(270) t.for

Python Logo by Python Turtle Graphics | Simple Python Project | Simple Python Turtle Programming

Python Logo by Python Turtle Graphics | Simple Python Project | Vast Coding  Here is the Source Code:-   import turtle t = turtle.Turtle() s = turtle.Screen() s.bgcolor("black") t.speed(0) t.pensize(2) t.pencolor("white") def s_curve():     for i in range(90):         t.left(1)         t.forward(1) def r_curve():     for i in range(90):         t.right(1)         t.forward(1) def l_curve():     s_curve()     t.forward(80)     s_curve() def l_curve1():     s_curve()     t.forward(90)     s_curve() def half():     t.forward(50)     s_curve()     t.forward(90)     l_curve()     t.forward(40)     t.left(90)     t.forward(80)     t.right(90)     t.forward(10)      t.right(90)     t.forward(120) #on test     l_curve1()     t.forward(30)     t.left(90)     t.forward(50)     r_curve()     t.forward(40)     t.end_fill() def get_pos():     t.penup()     t.forward(20)     t.right(90)     t.forward(10)     t.right(90)     t.pendown() def eye():     t.penup()     t.right(90)