Inputs: Pixel x coordinate, Pixel y coordinate, Number of seconds since start
Outputs: Red, Green, Blue
Node
Bias
Weights
JSON Input
To save, please copy and paste elsewhere data from below:
Updates (DD/MM/YYYY):
22/09/2025
Added option to treat NaN and undefined values (like log(-1)) as zero.
Found bug in layer deletion where following layers would not update the number of weights they expect.
21/09/2025
Fixed clamp function bug
Fixed neural net not working exclusively on Windows (remained functional on MacOS, ChromeOS, and iOS (mobile support not deliberate!)).
The mouse becomes a blue circle (meaning the shaders still work), but the neural net is not rendered sometimes. Seems to be partially dependent on one or more of the inputs not being used, but this, although deterministic, is not consistent across nodes and layers.
It turns out to be a difference in the way NaN and undefined values are handled. In the operating systems the program worked in, the undefineds were treated as zeros and/or were skipped entirely, having no impact on the rest of the program. With Windows, undefineds corrupted expressions, meaning that the previous method of combining activation functions into a single expression not only corrupted the outputs of nodes using activation functions with limited domains, but also all of the rest of them, as the activations were checked using multiplication instead of if-else statements.
The solution was to segment functions with limited domains into a separate category checked with if-else statements, preventing the potentially hazardous expressions from unintentionally tainting the rest of the network.
Fixed bug where the "Add Layer Before" function would try and fail to refer to the weights of a layer before Layer 1 when trying to add a new layer to the beginning of the network
Removed disfunctional scrolling on canvas
Fixed bug where deleting the layer at the end of a neural net would fail to update the UI and currently focused layer accordingly.
Added option not to reset the time as you update the network.
20/09/2025
Added ability to add layer before the layer currently being edited
Removed Windows saving bug
Added indication of number of layers present
Removed bug where save data would combine with visual UI data
Made visual UI settings visible only when visual UI is in use
Fixed bug when deleting layers where the number of weights of the following layer would not update.
Added natural log and exponential functions as activation functions
Fixed bug where adding layers crashed the site with alerts