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