SortedCoding
1.2K subscribers
185 photos
38 videos
194 files
140 links
Learn to code with clarity and precision
Download Telegram
Create Awesome cursor animation on MouseMove using JavaScript (EASY tutorial)👇 https://youtu.be/DNZrhA16PHI
1
code👇 import turtle

def draw_square(color,size):
turtle.fillcolor(color)
turtle.begin_fill()
for i in range(4):
turtle.forward(size)
turtle.left(90)
turtle.end_fill()

def draw_facebook_logo():
turtle.speed(2)
turtle.bgcolor("white")
turtle.penup()
turtle.goto(-80,60)
turtle.pendown()

# draw the blue background
draw_square('#3b5998',200)

# draw the white letter 'f'
turtle.penup()
turtle.goto(-50,60)
turtle.pendown()
turtle.color("white")
turtle.write("f", font=('Arial',120,'normal'))

#hide the turtle
turtle.hideturtle()
turtle.done()

draw_facebook_logo()
2
import turtle

def draw_square(color,size):
turtle.fillcolor(color)
turtle.begin_fill()
for i in range(4):
turtle.forward(size)
turtle.left(90)
turtle.end_fill()

def draw_facebook_logo():
turtle.speed(2)
turtle.bgcolor("white")
turtle.penup()
turtle.goto(-80,60)
turtle.pendown()

# draw the blue background
draw_square('#3b5998',200)

# draw the white letter 'f'
turtle.penup()
turtle.goto(-50,60)
turtle.pendown()
turtle.color("white")
turtle.write("f", font=('Arial',120,'normal'))

#hide the turtle
turtle.hideturtle()
turtle.done()

draw_facebook_logo()
1
New project check it out.
1
SortedCoding
Shinchan.py
Shinchan cartoon code📥
1
Navigation bar.txt
2.8 KB
Navigation bar.txt
1
Muilti Check out.txt
2.3 KB
Multi Check out.txt
1
Falling Star.txt
3.7 KB
Falling star.txt
1
ChatBot.txt
15.2 KB
Chatbot.txt
2
Calculator.txt
8.2 KB
Calculator.txt
1
How to install PyCharm on windows - Best Python IDE (2024) https://youtu.be/9_K73aTpHy4
1
import turtle
t = turtle.Turtle()
s = turtle.Screen()
t.pencolor('red')
s.bgcolor('black')
t.speed(0)

for i in range(150):
t.circle(190-i,90)
t.lt(90)
t.circle(190-i,90)
t.lt(18)
t.done()
1
import turtle as t
import colorsys as cs
t.tracer(2)
t.bgcolor('black')
t.pensize(2)
n = 100
h = 0
for i in range(500):
for i in range(4):
c = cs.hsv_to_rgb(h,1,1)
h += 1/n
t.color(c)
t.circle(49+i*5,90)
t.forward(100)
t.left(90)
t.right(10)
t.done()
1
import turtle

t = turtle.Turtle()
t.shapesize(0.2,0.2)
s = turtle.Screen()
s.bgcolor('black')

t.fillcolor('yellow')
t.begin_fill()

t.left(50)
t.forward(240)
t.circle(90,200)
t.left(221)
t.circle(90,200)
t.forward(260)

t.end_fill()
turtle.done()
2
from turtle import *
speed(0)

def insta1(x,y):
penup()
goto(x,y)
pendown()

def insta2(x,y,f,c,c1,c2):
color(c)
insta1(x,y)
begin_fill()
for i in range(4):
forward(f)
circle(c1,c2)
end_fill()

def insta3(c,x,y,c1):
color(c)
begin_fill()
insta1(x,y)
circle(c1)
end_fill()
insta2(-150,-120,350,'pink',20,90)
insta2(-110,-70,260,'white',20,90)
insta2(-90,-50,220,'pink',20,90)
insta3('white',20,10,70)
insta3('pink',20,30,50)
insta3('white',110,160,15)
hideturtle()
done()
2👍1