ASMR Programming - Python Turtle - Tinkering - No Talking
Code for this video:
import turtle as t
from math import sin,cos,radians
import colorsys as cs
ANG = 60
R = 200
t.speed(0)
t.tracer(1000,0)
t.bgcolor('black')
for i in range(1000):
t.pencolor(cs.hls_to_rgb(i/1000, i/1000, 0.5+i/2000))
a = sin(radians(ANG/2))*R
b = cos(radians(ANG/2))*R
t.rt(ANG/2)
t.fd(b)
xang = 90-(180-(90+ANG/2))
cang = 180 + xang*2
t.circle(a,cang)
t.fd(b)
t.rt(180-ANG/2)
R-=0.2
t.done()
Preview
Keyboard used: https://tokopedia.link/wv6fImaXgub
No comments:
Post a Comment