Skip to content

Instantly share code, notes, and snippets.

@MateSteinforth
Created March 12, 2022 09:31
Show Gist options
  • Select an option

  • Save MateSteinforth/1d1db9fd1ae42b02e32a78741a1d324f to your computer and use it in GitHub Desktop.

Select an option

Save MateSteinforth/1d1db9fd1ae42b02e32a78741a1d324f to your computer and use it in GitHub Desktop.
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