Modulus
The Fun Modulo Calculator
Modulo (%) is a mathematical operator that performs a division and returns the remainder.
It's very handy for creating timers that loop at specific intervals like for animations or counters.
I have a hard time visualizing how the formulas work so I made this silly tool to visualize it in a fun way.
How to Use a Modulus Panel

1.Animation: Changes animation frames when the Results (7) equal 0.0
2.Timer: Choose between 'fps' and 'time()'.
- fps - Starts at 0 and is incremented by 1 for each frame.
- time() - calls the time() function which counts up the number of seconds since modulus started.
3.Modulo: Clicking this will cause Modulo (3) and the Operator (5) to change places, modifying the current formula.
4.Number One: The first adjustable number in the formula. Click the arrow buttons to change the number.
5.Operator: Click to change between "*" (multiply) or "/"(divide). Can have its place swapped with Modulo (3) for different formulas.
6.Number Two: The second adjustable number in the formula. Click the arrow buttons to change the number.
7.Result Box: Shows the result of the formula every frame (60fps).
8.Extra Panels: Clicking the -/+ buttons will add or remove extra modulus panels. Useful for comparing formulas.
The default formula is (f % 5 * 1) and can be adjusted by using the various buttons on the panel.
(Tool tips can be enabled in the window menu.)
Thanks for Reading Me,
-Wash
[Please log in to post a comment]