Here comes the sun!
GGB Script
O = (0, 6)
c = Circle(O, 5)
speed = 0.3
t = Slider(0, 24 * 2*pi, 0.01, speed, 200)
f1(x) = 1/3*sin(x + t) - 3 + y(O)
f2(x) = 1/3*sin(x + 1/2*t) - 2 + y(O)
f3(x) = 1/3*sin(x + 1/3*t) - 1 + y(O)
f4(x) = 1/3*sin(x + 1/4*t) - 0 + y(O)
# Lf = {f4, f3, f2, f1}
sun = Circle(O, 2)
La = Sequence(k, k, pi/6, 5pi/6, pi/16)
Lp = Translate(Zip((1; k), k, La), Vector((0, 6)))
L = Zip(Ray(O, P), P, Lp)
A1 = Integral(f1, -6, 6, true)
A2 = Integral(f2, -6, 6, true)
A3 = Integral(f3, -6, 6, true)
A4 = Integral(f4, -6, 6, true)
ShowAxes(false)
ShowGrid(false)
# -- That's it! -- #
# Now change the colors and hide the labels
# Have fun! :)
If you like me work, you can support me in Patreon: https://www.patreon.com/jcponce
∞ Thanks! :)