SortedCoding
1.2K subscribers
185 photos
38 videos
194 files
140 links
Learn to code with clarity and precision
Download Telegram
CelestialBlooms.png
670 KB
import turtle as tur
import colorsys as cs
tur.setup(800,800)
tur.speed(0)
tur.tracer(10)
tur.width(2)
tur.bgcolor('black')
for i in range(25):
for j in range(15):
tur.color(cs.hsv_to_rgb(j/15,i/25,1))
tur.right(90)
tur.circle(200-i*4, 90)
tur.left(90)
tur.circle(100-i*4, 90)
tur.right(180)
tur.circle(50,20)

tur.hideturtle()
tur.done()
🔥1
CosmicFlower.png
1.5 MB
from turtle import *
import colorsys as cs
bgcolor('black')
tracer(20)
pensize(4)
h = 0
def draw(ang , n):
circle(5+n, 90)
left(ang)
circle(5+n, 60)
goto(-10,0)
for i in range(700):
c = cs.hsv_to_rgb(h, 1, 1)
h += 0.05
color(c)
up()
draw(90, i/5)
draw(180, i/2)
down()
fillcolor('black')
begin_fill()
draw(i/2, 0)
draw(90, i / 2)
draw(180, i/2)
end_fill()
draw(60, i)
done()
🔥1
CosmicBlooms.png
968.8 KB
from turtle import *
import colorsys
hideturtle()
speed("fastest")
bgcolor('black')
width(2)
h = 0.0
for i in range(50):
col = colorsys.hsv_to_rgb(h,1,1)
color(col)
for j in range(i*2):
circle(i*2)
right(36)
h += 0.1
done()
🔥1
CosmicSpiral.png
2.4 MB
import turtle as tur

tur.bgcolor("black")
tur.speed(0)
tur.hideturtle()

colors = ['yellow','green','blue','red']
for i in range(500):
for c in colors:
tur.color(c)
tur.forward(i)
tur.left(91)
tur.tracer(10)
tur.mainloop()
🔥1
MultiColoredCircles.png
936.6 KB
#python turtle project
import turtle
turtle.bgcolor("light pink")
turtle.pensize(2.5)
turtle.speed(0.5)
color = ['red','green','yellow','blue']
for x in range(9):
for i in color:
turtle.color(i)
turtle.circle(150)
turtle.left(10)

turtle.mainloop()
🔥1
GalacticWhirlpool.png
975.1 KB
import turtle
t = turtle.Turtle()

s = turtle.Screen()
colors = ['orange','red','magenta','blue','magenta',
'yellow','green','cyan','purple']

s.bgcolor('black')
t.pensize(2)
t.speed(0)
for x in range(360):
t.pencolor(colors[x%6])
t.width(x//100+1)
t.forward(x)
t.right(59)
turtle.done()
🔥1
Screenshot 2024-08-03 234226.png
303.4 KB
from turtle import *

bgcolor('#f3f3f3')
pencolor('#bc2a8b')
width(23)

penup()
goto(160, -100)
pendown()

left(90)
for i in range(4):
forward(250)
circle(34,90)

penup()
goto(85, 30)
pendown()
circle(80,360)

penup()
goto(110,130)
pendown()
circle(7, 360)

done()
🔥1
PsychedelicSnake.png
479.5 KB
from turtle import *
import colorsys as sr
title("Snake coding")
bgcolor('black')
tracer(200)

def draw():
h = 0
n = 20
up()
goto(0,30)
down()
pensize(5)
for i in range(500):
c = sr.hsv_to_rgb(h,1, 1)
h += 1/n
color(c)
fd(10)
circle(i,4,10)
for j in range(500):
lt(971)
circle(i*.1, j, steps = 2)
circle(i, 2)

draw()
done()
🔥1
RainbowFlowerBloom.png
1.4 MB
import turtle as tur
tur.bgcolor("black")
tur.speed(0)
tur.hideturtle()

colors = ['yellow','red','yellow','red']

for i in range(120):
for c in colors:
tur.color(c)
tur.circle(200-i, 100)
tur.lt(90)
tur.circle(200-i, 100)
tur.rt(60)
tur.end_fill()

tur.mainloop()
🔥1
RainbowVortex.png
2.1 MB
from turtle import *
import colorsys
bgcolor("black")
tracer(500)
def draw():
h = 0
for i in range(100):
c = colorsys.hsv_to_rgb(h,1,1)
h += 0.5
up()
goto(0,0)
down()
color('black')
fillcolor(c)
begin_fill()
rt (98)
circle(i, 12)
fd(290)
fd (i)
lt (29)
for j in range(129):
fd(i)
circle(j, 299, steps=2)
end_fill()
draw()
done()
🔥1
RedHeart.png
280.2 KB
import turtle
t = turtle.Turtle()
t.shapesize(0.2,0.2)
s = turtle.Screen()
s.bgcolor('white')

t.fillcolor('red')
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()
🔥1
RedVortex.png
605.8 KB
import turtle
t = turtle.Turtle()
s = turtle.Screen()
s.bgcolor('white')
t.pencolor('red')
t.speed(50)
for i in range(250):
t.circle(100)
t.lt(1)
t.circle(100)
t.lt(1)
s.exitonclick()
🔥1
SolarFlare.png
650.9 KB
import turtle as tur

tur.bgcolor("black")
tur.speed(0)
tur.hideturtle()

colors = ['yellow','yellow','red','red']
for i in range(200):
for c in colors:
tur.color(c)
tur.left(200)
tur.circle(200-i, 80)
tur.mainloop()
🔥1
StellarWhirlwind.png
1000.5 KB
import turtle
t = turtle.Turtle()
s = turtle.Screen()
s.bgcolor('black')
t.speed(0)
col = ['yellow','red','pink','cyan','light green','blue']

for i in range(150):
t.pencolor(col[i%6])
t.circle(190-i/2,90)
t.lt(90)
t.circle(190-i/3,90)
t.lt(60)
s.exitonclick()
🔥1
TrangularSpiral.png
1015.7 KB
from turtle import *
import colorsys
speed("fastest")
bgcolor('white')
width(2)
hue = 0.0
for i in range(250):
col = colorsys.hsv_to_rgb(hue,1,1)
color(col)
forward(i*2)
right(121)
hue += 0.005

done()
🔥1
Turtle Graphic.png
2.8 MB
from turtle import *
speed(0)
hideturtle()
bgcolor('black')
for i in range(150):
color('blue')
circle(i)
color('red')
circle(i*1.2)
color('orange')
circle(1*1.5)
left(5)
backward(5)

done()
🔥1
clock.png
395.5 KB
import turtle as tur

x = 150
tur.speed(7)

tur.penup()
tur.goto(0,x)
tur.seth(0)
for i in range(12):
tur.circle(-x,29 if i>= 9 else 30)
tur.write(i+1, font=("Arial",40,'bold'))

tur.goto(10,10)
tur.pendown()
tur.seth(140)
tur.width(15)
tur.forward(x-70)

tur.goto(10,10)
tur.seth(30)
tur.width(5)
tur.forward(x-30)


tur.seth(90)
tur.width(10)
tur.goto(20,10)
tur.pendown()
tur.color("#d4af37")
tur.circle(10)

tur.penup()
tur.goto(10, x+70)
tur.pendown()
tur.color('#2e2eb8')
tur.width(40)
tur.seth(180)
tur.circle(x+50)

tur.penup()
tur.color('black')
tur.goto(-30,x-40)
tur.pendown()
tur.write("Snake Coding \n please subscribe")

tur.hideturtle()
tur.done()
🔥1
pythonlogo.png
292.4 KB
Download The Source Code👇 https://github.com/SortedCoding/PythonLogo
🔥1
image2.png
7.3 MB
HTML & CSS Tutorial: Create a Beautiful Login Form
Download Source code 👇
https://github.com/SortedCoding/BeautifulLoginForm6
🔥1
image4.png
7.6 MB
HTML & CSS Login Form Tutorial | Beautiful Design
Download Source code 👇
https://github.com/SortedCoding/BeautifulLogiForm8
🔥1
image1.png
1.5 MB
Build a Beautiful Login Form with HTML & CSS
Download Source code 👇
https://github.com/SortedCoding/BeautifulLoginForm5
🔥1