A small spontaneous idea I had. This scene scans the points between (-20,-20) and (20,20) in 0.25 steps and marks if X%Y and/or Y%X is equal to the set value.
For those who don't know the %(modulus) sign: It is similar to the / sign, or a division, with the difference that instead of the result, the natural leftover is outputted, i.e. 5%2 = 1 since 5/2 rounded down is 2, 2*2 = 4, 5-4 = 1, and that last 1 is the result of the modulus.
Legend:
Empty spot means neither calculation is equal to the result
Orange means the X-coord modulus the Y-coord is equal to the set result value.
blue means the Y-coord modulus the X-coord is equal to the set result value.
pink/magenta means both equations result in the set result value.
Enter the result value inside the large box before running the scene. To test another number simply return to the beginning of the scene and change the number.
Next Scene: Prime-Matrix - A graph showing the occurrence of a few prime numbers at the range of 0-200 or 0-1000.
Remember to check out the
Algodoo Building Community if you like to make mechanical or scripted scenes in algodoo!