Google Classroom
GeoGebraClasse GeoGebra

Simple example: Colored circle

Script Setup

A = (0.5, 0.5, 0.5) B = (0.5, 0.5, 0.5) C = (1, 1, 1) D = (0, 0.33, 0.67) functionRed(x) = x(A) + x(B) * cos(2pi(x(C) * x + x(D))) functionGreen(x) = y(A) + y(B) * cos(2pi(y(C) * x + y(D))) functionBlue(x) = z(A) + z(B) * cos(2pi(z(C) * x + z(D))) t = Slider(0, 1, 0.01, 1, 200) c = Circle((0, 0), 1) SetDynamicColor(c, Min(1, Max(0, functionRed(t) )), Min(1, Max(0, functionGreen(t) )), Min(1, Max(0, functionBlue(t) )), 1)