Here's my code, I wrote this in khan's processing JS because that's all I was able to work with at the time. (I.E. math class)

I'm not really sure how it works, and all other attempts to replicate it by me failed, as there are some really strange processingJS quirks I have yet to understand.

If there is any more information on how this works, please tell me. I have searched somewhat extensively looking for similar formulae, and have found none. (Please help, thinking about it too much hurts my brain...)

Here's the formula the program uses, put into pseudocode:

I'm not sure about the code working exactly like this, as similar code morphed into TI-BASIC does not work.

Sorry if this makes no sense, it doesn't to me either...

I'm not really sure how it works, and all other attempts to replicate it by me failed, as there are some really strange processingJS quirks I have yet to understand.

If there is any more information on how this works, please tell me. I have searched somewhat extensively looking for similar formulae, and have found none. (Please help, thinking about it too much hurts my brain...)

Here's the formula the program uses, put into pseudocode:

**Code:**```
for all x coords on screen
```

for all y coords on screen

set variable "Z" to 255 * floor((x^2 + y^2)/abs(x+y))

Set the pen color to a shade of gray, dependant on "Z". If "Z" is >= 255 (pure white), set var "Z" to 255

draw a point at (x, y)

end both for loops

I'm not sure about the code working exactly like this, as similar code morphed into TI-BASIC does not work.

Sorry if this makes no sense, it doesn't to me either...