JigMath

Highlights⌗
Description⌗
JigMath is a real-time equation parser and solver for the web with syntax highlighting capabilities.
Inputs are coordinates, output is a color.
Steps:
- The user writes his mathematical expression in the textarea.
- The input is parsed, mainly with regular expressions.
- The same input is drawn above the textarea to add syntax highlighting and to underline any errors and warnings (unknown function or variable, bad symbol…).
- The function is simplified when possible (
4*6*xbecomes24*x). - The function is called for each value of the predefined variables (e.g.
xandy).
Context⌗
This tool was made for the LED-Cube project of Robotek. And more specifically, to create animations from a function with 4 dimensions.
Creating animations with hundreds of 512-color frames is tedious. With this equation parser, we were able to generate animations in seconds.
About half of the animations here were generated using a formula.
Overview⌗
| Blurred sinusoid |
|---|
![]() |
![]() |
| Color wheel |
|---|
![]() |
![]() |
| Color wheel on LED-Cube |
|---|
| Credits to Robotek |
![]() |




