When a clock's hand passes 12, it does not reach 13 — it carries on from 1. When Kinetica's spin passes a full turn, its phase does not reach 361° — it starts again from 0°. Going off the end and back to the start is modular wrapping.
Two counters quietly wrap as the disc plays: the spin's phase cycles 0→360° and back, and the trail's colour index loops through 240 shades. Each goes off the top and starts again from zero — that wrap-around is modular arithmetic. (This is maths of how the picture is drawn, not the physics of the motion.)
Modular arithmetic is counting that wraps around. Once a value reaches a fixed limit — the modulus — it starts again from zero. A clock counts hours modulo 12, so after 12 comes 1, not 13. Kinetica measures the spin's phase modulo 360° and steps colours modulo 240. The result is a value that endlessly cycles within a fixed range.
To wrap a number you divide by the modulus and keep only the remainder. So 14 o'clock is 14 mod 12 = 2 o'clock; a spin of 400° is 400 mod 360 = 40° of phase. The count keeps growing underneath, but what you read off is always folded back into the range from 0 up to just below the modulus. That is why a clock, a calendar, and a spinning disc's phase all loop forever without running out of numbers.
The disc's phase — how far through its rotation — is its total spin taken modulo 360°, so it cycles 0→360→0 like a clock hand. The trail's colour index wraps modulo 240, so after the 240th shade it returns to the first. Both are modular counters quietly looping in the background of the picture, a maths-of-the-picture detail rather than part of the motion's physics.
Modular counting clicks when you watch a dial tick past the top and start again — the raw count climbing while the reading folds back to zero.
The wrapped value is the raw count's remainder after dividing by the modulus — always between 0 and one less than the modulus.
The most familiar modular counter of all: hours run 1 to 12 and then start over, so 3 o'clock comes round twice a day. Add hours and you simply wrap past 12, which is why working out times is really arithmetic modulo 12.
A mechanical odometer counts up and then, on passing its highest number, rolls back to zero. Each digit is a modular counter; the wheels wrap one after another, the same way seconds wrap into minutes and minutes into hours.
Weekdays cycle modulo 7. Ask what day it is 100 days from now and you divide by 7 and keep the remainder — pure modular arithmetic, the same wrap-around that lets calendars and computer clocks loop forever.
Modular arithmetic is the quiet wrap-around behind clocks, calendars, and Kinetica's looping phase and colours. This FAQ explains the modulus and remainder, why counts cycle instead of running out, and where the idea turns up in everyday life and the picture.
Modular arithmetic is counting that wraps around when it reaches a set limit, called the modulus. Instead of going on forever in a straight line, the count loops: once it passes the top it starts again from zero. A clock is the everyday example, counting hours modulo 12, so after 12 it returns to 1. The same idea lets any cycle — days, angles, colours — repeat without running out of numbers.
The modulus is the number at which a modular count wraps back to zero. It sets the length of the cycle. A 12-hour clock has a modulus of 12; degrees of angle wrap at a modulus of 360; Kinetica's colour index wraps at 240. Choosing the modulus is just choosing how big the loop is before the count starts over from the beginning.
You divide the number by the modulus and keep the remainder. For example, to find 14 o'clock you divide 14 by 12, which goes once with 2 left over, so the answer is 2 o'clock. To find the phase of a 400° spin you divide 400 by 360, which goes once with 40 left over, so the phase is 40°. The remainder is always between zero and one less than the modulus.
| Part | What it tells you | Example: 400 ÷ 360 |
|---|---|---|
| Quotient | How many full wraps | 1 full turn |
| Remainder | The wrapped position | 40° left over |
Because hours are counted modulo 12. A clock face has only twelve positions, so the count cannot keep climbing forever; once the hand passes 12 it has nowhere higher to go and returns to 1. Adding hours is then just wrapping: three hours after 11 is not 14 but 2, because 14 wraps past 12 with a remainder of 2. This looping is exactly what lets the same clock tell the time day after day.
Kinetica has two modular counters running quietly as it draws. The spin's phase is an angle wrapped modulo 360°, so it cycles 0 to 360 and back, just like a clock hand. The trail's colour index is wrapped modulo 240, so after the 240th shade it returns to the first and loops the palette. Both are maths-of-the-picture details about how the trail is drawn and coloured, not part of how the disc physically moves.
Yes. Counting down wraps too, just in the other direction. Two hours before 1 o'clock is 11 o'clock, not minus 1, because the count drops below zero and wraps around from the top. In general, a negative result is brought back into range by adding the modulus until it sits between zero and one less than the modulus. So both adding and subtracting simply loop around the cycle.
Two numbers are congruent under a modulus when they leave the same remainder, meaning they land on the same spot in the cycle. For instance, 14 and 2 are congruent modulo 12 — both are 2 o'clock — and 26 and 2 are congruent modulo 24. Congruence is the formal way of saying that, as far as the modular counter is concerned, two different raw counts are effectively the same position.
Yes. Underneath a modular counter, the true total can keep rising without limit; it is only the value we read off that wraps. A spinning disc has turned through more and more total degrees as time goes on, but its phase — what we display — always folds that total back into 0 to 360. The wrapping is a way of reading a position in the cycle, not a limit on the real count beneath.
Because anything that repeats — hours, days, angles, musical notes, colours — naturally lives on a loop, and modular arithmetic is the maths of loops. It lets you add and subtract along the cycle and always get a sensible position back, no matter how large the numbers grow. Without it, you would have to keep subtracting full cycles by hand; with it, a single remainder gives the answer at once.
Weekdays cycle modulo 7. To find what day it will be a number of days from now, you divide that number by 7 and keep the remainder, then count that many days on from today. A hundred days from a Monday, for example, lands on a particular weekday found purely by 100 modulo 7. Calendars, scheduling, and recurring reminders all lean on this seven-day wrap.
Everywhere they handle cycles and limits. Clocks and timers wrap counters modulo their maximum; graphics wrap colour and texture coordinates; sound and animation loop with it; and much of cryptography rests on modular arithmetic with very large numbers. Even the way numbers overflow and wrap in a computer's memory is modular. It is one of the most quietly important ideas in computing, hidden inside almost everything.
It is a drawing detail, which is why Kinetica calls it maths of the picture rather than real physics. Wrapping the colour index modulo 240 decides which shade each line takes; it has no effect on how the disc moves, bounces, or spins. Keeping that line clear matters: some of Kinetica's patterns come from the simulated physics, while others, like this colour loop, are simply tidy choices about how to draw the picture.
Yes, they work together. Kinetica steps each colour by the golden angle and then wraps the colour index modulo 240 so it stays on the wheel. The golden angle decides how far each step jumps, and the modular wrap keeps those jumps looping around the fixed set of shades. One spreads the colours evenly; the other keeps them on the cycle. Both are maths-of-the-picture choices about colour, not the motion.
Far more often than we notice. Clocks and stopwatches, calendar dates and weekdays, compass bearings that wrap at 360°, the position of a clock's second hand, the looping tracks on a playlist, and the rolling digits of an odometer are all modular. Any time something counts up and then starts over, modular arithmetic is at work — a simple idea that quietly keeps the cyclic parts of the world ticking.
Seven question formats, the way Beyond Dictionary serves them. Every question has layered hints — a quick nudge, the reasoning, then a deeper connection — so a wrong answer opens a door, never a dead end. 32 questions across all seven formats — multiple choice, multiple-correct, fill-in-the-blank, match, sequence, read-think-connect, and write-your-own.