Rotation of spheres

GGB script
[code][/code][code]#Main[br]speed = 1[br]t = Slider(0, 2 pi, 0.1, speed, 100, false, true, false, false)[br][br]O = (0,0,0)[br]u = (6, 0, 0)[br]s = Rotate( Translate( Sphere( O, 1.7 ), u ), t/4 ) [br][br]max = 24[br]Ln = 1...4[br]Lm = 1...max[br][br]f = 4[br]k = 1[br]g(x, y) = k * cos(2 * x * f * pi / max - y) + 2[br][br]P = (x(u), y(u), z(u))[br]v = (0, 1, 0)[br][br]LC = Zip( Rotate(Circle( P, g(rot, t), v ), 2 * rot * pi / max), rot, Lm )[br]LS = Zip( Rotate(s, 2 * rot * pi / 4), rot, Ln )[br][br]#Settings[br]SetVisibleInView(s, -1, false)[br]SetVisibleInView(g, -1, false)[br]SetVisibleInView(u, -1, false)[br]SetVisibleInView(v, -1, false)[br]SetVisibleInView(O, -1, false)[br]SetVisibleInView(P, -1, false)[br]SetVisibleInView(u, 1, false)[br]SetVisibleInView(v, 1, false)[br]SetVisibleInView(O, 1, false)[br]SetVisibleInView(P, 1, false)[br][br]SetFilling(LS, 1)[br]SetLineThickness(LC, 6)[br][br]ShowAxes( 1, false )[br]ShowGrid( 1, false )[br]ShowAxes( 3, false )[br][br]StartAnimation(t, true)[/code]
Inspired by this p5js sketch:[br]https://openprocessing.org/sketch/1603773[br]by KomaTebe

Information: Rotation of spheres