A retro cityscape with mathematics
Basic script
t = 0
#Sun
f(x) = sqrt(6^2-x^2)
sun = Integral(f, -10, 10, false)
#Buildings
g(x) = 2 + 2 sin(floor(x-t) * 4321)
buildings = Integral(g, -10, 10, false)
#Perspective
L = Zip(y = -5 / k + 0.4, k, 1…10)
#Animate
animation = Slider(0, 1, 0.01, 1, 200)
#Add script in Update tab
#SetValue(t, t+0.08)
Inspired by Inigo Quilez
https://www.youtube.com/shorts/SXnoxXhpSNo
Support
If you like my work, you can support me in Patreon:
https://www.patreon.com/jcponce
Get my recent Mathematical Art with GeoGebra ebook:
https://www.patreon.com/jcponce/shop/mathematical-art-with-geogebra-577631
∞ Thanks fro your support!