Scaling trochoid’s and cycloid’s input parameters with the spyrograph scale
method
In this blog post, we will explore the scale
method in the spyrograph
package which enables users to easily scale their trochoids and cycloids
Creating a Hypocycloid
First, let’s create a Hypocycloid
with 10 cusps to work with:
Scaling the Hypocycloid
with the scale
method
Now that we have a Hypocycloid
, we can easily scale it using the scale
method:
The scaled_hypocycloid
will now have its input parameters (R
, r
, and d
) multiplied by the scaling factor
For example the radius of the big circle R=300
will now be R*.5=150
Using scale
to trace
a beautiful pattern
Let’s jump into a concrete example of using the scale
method in action to trace
a gradually smaller set of curves
Conclusion
The scale
method in spyrograph provides a convenient way to resize trochoids and cycloids while preserving their shape
With just a single method call and a scaling factor, users can quickly create new shapes with different sizes, making the package even more versatile for artists, educators, and developers alike
Don’t forget to experiment with different scaling factors and shapes to create stunning patterns and visuals!