Skip to main content

How to create A Spider In Python Turtle Programming by Ahvi Official_Coding

 How to create A Spider In Python Turtle Programming:






                 


import turtle

turtle.Screen().bgcolor('black')
t=turtle
t.pencolor('cyan')
t.pensize(2)
t.fillcolor('cyan')
turtle.begin_fill()
t.penup()
t.goto(0,30)
t.pendown()
t.right(140)
t.forward(80)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(100)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(50)
for i in range (10):
    t.left(8)
    t.forward(5)
t.forward(50)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(100)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(80)
t.goto(-43,-8)
t.right(20)
for i in range (5):
    t.right(5)
    t.forward(10)
for i in range (5):
    t.right(5)
    t.forward(5)
for i in range(5):
    t.right(10)
    t.forward(3)
for i in range(5):
    t.right(2)
    t.forward(9)
t.right(17)
for i in range(6):
    t.right(2)
    t.forward(8)
   
for i in range(7):
    t.right(7)
    t.forward(1)

for i in range(7):
    t.right(4)
    t.forward(4)
   
for i in range(9):
    t.right(2)
    t.forward(5)
   
t.right(90)
t.forward(22)
t.pensize(30)
t.forward(20)
t.end_fill()

t.pensize(9)
t.goto(-36,-6)
t.forward(100)
t.right(70)
t.forward(120)
t.right(30)
t.forward(30)
t.penup()


t.goto(-30,30)
t.pendown()
t.left(100)
t.forward(70)
t.right(70)
t.forward(60)
t.right(50)
t.forward(30)

t.penup()
t.goto(35,-6)
t.pendown()
t.right(15)
t.forward(100)
t.left(70)
t.forward(120)
t.left(30)
t.forward(30)

t.penup()
t.goto(30,30)
t.pendown()
t.right(100)
t.forward(70)
t.left(70)
t.forward(60)
t.left(30)
t.forward(30)

t.right(10)

t.penup()
t.goto(-50,-50)
t.left(50)
t.pendown()
t.forward(140)
t.left(100)
t.forward(20)
t.left(20)
t.forward(200)
t.left(30)
t.forward(40)

t.penup()
t.goto(50,-50)
t.left(70)
t.pendown()
t.forward(140)
t.right(100)
t.forward(20)
t.right(20)
t.forward(200)
t.right(30)
t.forward(40)

t.penup()
t.goto(-50,-150)
t.right(70)
t.pendown()
t.forward(90)
t.left(110)
t.forward(20)
t.left(20)
t.forward(180)
t.left(30)
t.forward(40)


t.penup()
t.goto(50,-150)
t.left(60)
t.pendown()
t.forward(100)
t.right(110)
t.forward(20)
t.right(20)
t.forward(180)
t.right(30)
t.forward(40)

t.pensize(6)
t.penup()
t.goto(0,40)
t.pendown()
t.right(100)
t.left(20)
t.forward(60)
t.right(70)
t.forward(30)

t.penup()
t.goto(0,40)
t.pendown()
t.right(30)
t.forward(60)
t.left(70)
t.forward(30)


t.done()



How to Create A Snake Game Using C++ Language





PyQt5 Clock Make In Python Programming











Comments

Popular posts from this blog

How To Create Snake Game In C++ Programming Language By Ahvi Official_Coding

 How To Create Snake Game In C++ Programming Language : Source Code :  /*Snake Game create By Ahvi Official_Coding*/ #include <iostream.h> #include <conio.h> #include <graphics.h> #include <dos.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <string.h> class Snake {   int p1,p2,v1,v2,v3,e1,e2,prev,now,n,colr,dsp,cnt,dly,m;   int stp, egGen;   int xr, yr;   void caught ();   public:   long scr;   int strtX,strtY,endX,endY;   int pos [ 100 ][ 2 ];   void show ();   void init ();   void egg ();   void transpose ();   void gnrtCond ();   void gnrtUnCond ();   void check ();   void checkEgg ();   void move ();   void chngDir ();   void sndEt ();   void sndCgt ();   int test ();   void score ();   Snake ();   Snake ( Snake * );   ~Snake ();  }; Snake :: Snake () ...

Rose Create in Python Turtle Programming Language

 Rose Create in Python Turtle Programming Language #Rose program create by Ahvi import colorsys import turtle t = turtle . Turtle () s = turtle . Screen () t . pensize ( 2 ) t . fillcolor ( 'deeppink' ) t . begin_fill () def rr ( a , d , r ):     for i in range ( r ):           t . left ( a )           t . forward ( d ) def rl ( a , d , r ):         for i in range ( r ):               t . right ( a )               t . forward ( d )               def rr1 ( a , d , r ):         for i in range ( r ):           t1 . left ( a )           t1 . forward ( d ) def rl1 ( a , d , r ):         for i in range ( r ):               t1 . right ( a )       ...