Created
December 9, 2015 09:01
-
-
Save kaorun343/6b7f7aed224aa24d6e12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
memory[55001] -> 1 | |
n -> 0 | |
while n < 10000 | |
memory[n] -> 0 | |
n -> n + 1 | |
background() | |
memory[55000] -> 0 | |
RED -> 10000 | |
GREEN -> 100 | |
BLUE -> 1 | |
GRAY -> gray(3) | |
while 1 | |
if ( memory[50002] + memory[50003] ) != 0 | |
mouseX -> memory[50000] | |
mouseY -> memory[50001] | |
target -> mouseX + (mouseY * 100) | |
color -> 0 | |
if memory[50002] != 0 | |
color -> memory[target] + GRAY | |
if color > 999999 | |
color -> 999999 | |
if memory[50003] != 0 | |
color -> memory[target] - GRAY | |
if color < 0 | |
color -> 0 | |
memory[target] -> color | |
memory[60000 + target] -> color | |
memory[55000] -> 1 | |
def background() | |
x -> 0 | |
while x < 100 | |
y -> 0 | |
while y < 100 | |
target -> x + (y * 100) | |
color -> gray((x + y) / 2) | |
memory[60000 + target] -> color | |
memory[target] -> color | |
y -> y + 1 | |
x -> x + 1 | |
def gray(brightness) | |
out -> 10101 * brightness |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment