Created
April 13, 2021 13:47
-
-
Save fogus/1a6895d67bff871272d4cf435d29a952 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
<canvas id="c" width="1024" height="1024"> | |
<script> | |
// https://js.do | |
const context = c.getContext('2d'); | |
for (let x = 0; x < 256; x++) { | |
for (let y = 0; y < 256; y++) { | |
if ((x ^ y) % 9) { | |
context.fillRect(x*4, y*4, 4, 4); | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment