Google Classroom
GeoGebraClasse GeoGebra

Hexagonal curves animation

Video tutorial:

Script

n = 50 k = 2.5 m = 3 t = Slider(0, 2*pi, 0.01, 0.3, 200) f(x) = (cos(m*x/2)^n + sin(m*x/2)^n)^(1/(k*n)) # Hexagonal curve # c = Curve((1/f(θ); θ), θ, 0, 2*pi) # Sequence of hexagonal curves L = Sequence(Curve((j * 1/f(θ); θ), θ, j * t, pi + j * t), j, 1, 10) # Another option to define the curve is as follows: # Curve(j/f(θ)*cos(θ), j/f(θ)*sin(θ), θ, t, pi+t) # See online demo HERE
If you liked this tutorial, you can support my work in Patreon: https://www.patreon.com/jcponce ∞ Thanks!