Created
March 12, 2022 09:31
-
-
Save MateSteinforth/1d1db9fd1ae42b02e32a78741a1d324f to your computer and use it in GitHub Desktop.
Bitwise Operators lookup Texture ala http://orenk2k.blogspot.com/2011/05/bitwise-operators-on-low-end-gpus.html
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
| function setup() { | |
| createCanvas(256, 256); | |
| } | |
| function draw() { | |
| for (let i = 0; i < width ; i++) { | |
| for (let j = 0; j < height; j++) { | |
| let c = color(i & j, i | j, i ^ j); | |
| set(i, j, c); | |
| } | |
| } | |
| updatePixels(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment