About JSArt ModdedJSArt Modded is a version of
JSArt, which is a website where you can make art with JS code.
To ask
any questions or put all your code to the JSArt Modded compiler, join the Discord server to put your foumula or ask
for help!
How does it work?For each pixel, the code is ran. The code should output a number, so it can
be converted to hexadecimal to choose what color to pick for that pixel.
VariablesYeah. We can't just
let the screen have a singular color, so we help you by making those variables you can use:
- "i" for Index (the number of pixels that are already rendered + 1)
- "t" for Time (Number of frames passed)
- "x" for pixel X (The X position of the pixel that is going to be rendered)
- "y" for pixel Y (The Y position of the pixel that is going to be rendered)
- "mx" for Mouse X
- "my" for Mouse Y
- "sw" for Screen Width
- "sh" for Screen Height
- "c" is a center gradient, a vignette specifically
- "ic" is the opposite of "c", an inverted vignette
- "cl" is 1 when the left mouse button i pressed, 0 otherwise
- "k" is the keycode of the currently pressed key, -1 if none of the keys are being pressed
- "r" is a random number generator
Now, try to play around!