This tool is a companion to the EquArt generative art bot.
You can generate an image from a seed (either manually entered or randomly generated) or you can enter your own equation. You can also adjust the color range used.
When creating your own equation there are a few rules to follow:
x
and y
which represent the x and y location on the image in pixels.sin()
asin()
tan()
ln()
<
+
-
*
/
**
^
If a problem occurs when parsing your equation, an error will be displayed that shows the parsing result so you can try to understand your error.
The random number generator used is seeded and returns the same sequence given the same seed so equation generation is deterministic based on the seed.
To estimate the equation complexity, the equation is evaluated and the resulting image is compressed. It is assumed that the compression ratio implies something about the image complexity.
The high and low thresholds used for equation selection were emperically selected. However, the line between beauty and randomness is fine and the high threshold was selected to try and avoid rejecting attractive images at the expense of sometimes accepting random looking images.
For every pixel in the image, the selected equation is evaluated with the current pixel location used for the x, y operands in the equation. The resulting value is mapped into the range [0:360) via the modulus operator and then linearlly mapped into the color palette previously selected. Any Infinities or errors generated when evaluating the equation are mapped to the palette's base color.