Quick Answer
Choose whether the small circle rolls inside or outside the big one, enter the two circle sizes and the pen distance, and press Draw pattern. Whole numbers make the line close into a repeating shape. Try the pen distance first: a small value makes a gentle flower, and a large one makes tight loops.
Embed this calculator
Adjust the size if needed, then copy the code below into your page or blog. The calculator will load in an iframe and stay updated automatically.
Table of Contents
- Spiral Pattern Maker
- Quick Answer
- Related Calculators
- How This Spiral Pattern Maker Works
- How to Use the Spiral Pattern Maker
- How the Pattern Is Drawn
- Key Terms
- Worked Example
- Real-Life Examples
- Inside vs Outside
- Examples
- Tips for Interesting Patterns
- Common Mistakes to Avoid
- Frequently Asked Questions
- References & Sources
How This Spiral Pattern Maker Works
Imagine a small circle rolling around the inside of a bigger ring, with a pen stuck into the small circle at some distance from its center. As the circle rolls, the pen draws a looping, flower-like line. This tool draws that line for you from three numbers.
The curves it draws are called hypotrochoids when the small circle rolls inside the ring, and epitrochoids when it rolls around the outside. Both repeat in beautiful patterns that look different with every set of numbers.
Features:
- Inside or outside: choose which side of the fixed circle the small circle rolls on.
- Three numbers: the fixed circle size, the rolling circle size and the pen distance.
- Colors: a rainbow, or one solid color, on a white or dark background.
- Download: save the finished pattern as a PNG.
How to Use the Spiral Pattern Maker
- Choose whether the rolling circle runs inside or outside.
- Enter the fixed circle size and the rolling circle size as whole numbers.
- Enter the pen distance, and choose a color and thickness.
- Press Draw pattern.
- Press Download pattern to save it as a PNG.
How the Pattern Is Drawn
- Inside (hypotrochoid): with fixed circle R, rolling circle r and pen distance d, the pen is at x = (R − r) cos t + d cos(((R − r) ÷ r) t) and y = (R − r) sin t − d sin(((R − r) ÷ r) t).
- Outside (epitrochoid): x = (R + r) cos t − d cos(((R + r) ÷ r) t) and y = (R + r) sin t − d sin(((R + r) ÷ r) t).
- Lobes: write R ÷ r as a fraction in lowest terms, p ÷ q. The curve then has p lobes, or cusps when the pen is on the rim.
- Turns to close: the same fraction tells you the pattern closes after q turns of the angle t. In terms of the two sizes, p = R ÷ gcd(R, r) and q = r ÷ gcd(R, r), where gcd is the greatest common divisor.
- Pen distance: when d equals r, the pen is on the rim of the small circle and the curve has sharp points. A smaller d gives smooth waves, and a larger d gives loops.
Key Terms
- Hypotrochoid: the curve drawn by a point attached to a circle rolling inside a fixed circle.
- Epitrochoid: the same, with the circle rolling outside the fixed circle.
- Lobe: one of the repeating points or petals around the pattern.
- Greatest common divisor: the biggest whole number that divides two numbers exactly.
Worked Example
- Fixed circle R = 96 and rolling circle r = 36, rolling inside.
- The greatest common divisor of 96 and 36 is 12.
- Lobes: 96 ÷ 12 = 8. Turns to close: 36 ÷ 12 = 3.
- So the line goes around 3 times and closes into a pattern with 8 lobes. The pen distance 60 is larger than r = 36, so the line makes loops, which show up as 8 petals.
Real-Life Examples
- Art and crafts: use the pattern for cards, labels, wallpaper or colouring pages.
- Maths class: show how the ratio of two numbers, such as 96 to 36, decides the number of lobes (8) and the turns (3).
- Designers: make a unique background or logo shape in a few seconds.
- Relaxing play: change one number at a time and watch the pattern change.
Inside vs Outside
- Inside (hypotrochoid): the small circle rolls along the inside of the ring. The pattern stays within the ring.
- Outside (epitrochoid): the small circle rolls around the outside. The pattern is larger and often looks like a flower or a ring of loops.
- Which to pick: use inside for tidy, star-like shapes and outside for wide, petal-like ones.
Examples
| R and r | Lobes | Turns to close |
|---|---|---|
| 96 and 36 | 8 | 3 |
| 100 and 40 | 5 | 2 |
| 97 and 36 | 97 | 36 |
| 60 and 20 | 3 | 1 |
| 105 and 30 | 7 | 2 |
Tips for Interesting Patterns
- Pick sizes with a common factor: they close up quickly. Sizes such as 96 and 36 give a neat pattern with 3 turns.
- Try sizes with no common factor: such as 97 and 36. The pattern takes 36 turns to close, so it is dense and detailed.
- Move the pen: change the pen distance in small steps to see the loops grow and shrink.
- Compare inside and outside: the same numbers give very different shapes.
- Use the dark background: bright colors stand out on it.
Common Mistakes to Avoid
- Using a rolling circle bigger than the fixed circle when rolling inside. The inside rolling circle must be smaller.
- Typing decimals for the circle sizes. They must be whole numbers so the pattern can close.
- A pen distance of zero. The pen is at the center of the rolling circle, so you only get a plain circle.
- Expecting a quick close with awkward sizes. Sizes with no common factor need many turns, so the drawing is very dense.
- Thin lines on a dense pattern. Use a thicker line or a dark background for clarity.
Frequently Asked Questions
A tool that draws looping patterns from a small circle rolling inside or outside a big one.
Yes, with no sign-up. The drawing is made in your browser.
Start with 96, 36 and 60, then change one at a time.
Whole numbers let the line close into a repeating shape.
It sets how loopy the pattern is. Small values give gentle waves and large values give loops.
The fixed circle size divided by the greatest common divisor of the two sizes.
Yes, as a PNG image.
A hypotrochoid uses (R − r), and an epitrochoid uses (R + r). Both use the pen distance d. They are shown above.
They have no common factor, so the line only closes after 36 turns.
When rolling inside, it must be smaller than the fixed circle.
Yes. The circle sizes must be whole numbers, but the pen distance can have decimals.
A rainbow and six solid colors, on a white or dark background.
Yes. The drawing scales to fit your screen.
No. Download it before you leave the page.
References & Sources
| Source | Used For | Link |
|---|---|---|
| Wikipedia, Hypotrochoid | The parametric equations for a hypotrochoid. | https://en.wikipedia.org/wiki/Hypotrochoid |
| Wikipedia, Epitrochoid | The parametric equations for an epitrochoid. | https://en.wikipedia.org/wiki/Epitrochoid |
| Wikipedia, Hypocycloid | With k = R divided by r in lowest terms p over q, the curve has p cusps. | https://en.wikipedia.org/wiki/Hypocycloid |
| Wikipedia, Epicycloid | The same cusp rule for a circle rolling outside. | https://en.wikipedia.org/wiki/Epicycloid |