Skip to main content

How to create Chrome Icon Using Python turtle by Ahvi Official Coding

 How to create Chrome Icon Using Python turtle


z


                 


from turtle import begin_fill, circle, color, colormode, distance, down, end_fill, fd, hideturtle, left, pensize, right, seth, up
import turtle


colormode(255)
red =(223,35,35)
green=(75,183,75)
yellow=(252,216,9)
blue=(86,146,195)
pensize(4)

r=120
seth(-150)
up()

color(red)
begin_fill()
fd(r)
down()
right(90)
circle(-r,120)
fd(r*3**.5)
left(120)
circle(2*r,120)
left(60)
fd(r*3**.5)
end_fill()


left(180)
color(green)
begin_fill()
fd(r*3**.5)
left(120)
circle(2*r,120)
left(60)
fd(r*3**.5)
left(180)
circle(-r,120)
end_fill()


left(180)
circle(r,120)
color(yellow)
begin_fill()
circle(r,120)
right(180)
fd(r*3**.5)
right(60)
circle(-2*r,120)
right(120)
fd(r*3**.5)

end_fill()

pensize(0)
up()
left(98)
fd(r/20)
seth(60)
color(blue)
down()
begin_fill()
circle(distance(0,0))
end_fill()
hideturtle()
turtle.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 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...

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 () ...

PyQt5 clock in python programming

PyQt5 clock in python programming   # created by Ahvi   # importing libraries from email . mime import application from PyQt5 . QtWidgets import * from PyQt5 import QtCore , QtGui from PyQt5 . QtGui import * from PyQt5 . QtCore import * import sys # creating a clock class class Clock ( QMainWindow ):     # constructor     def __init__ ( self ):         super (). __init__ ()         # creating a timer object         timer = QTimer ( self )         # adding action to the timer         # update the whole code         timer . timeout .connect( self . update )         # setting start time of timer i.e 1 second         timer . start ( 1000 )         # setting window title         self . setWindowTitle ( 'Clock' )         # set...