Skip to content

Instantly share code, notes, and snippets.

@takawo
Created July 22, 2020 10:01
Show Gist options
  • Save takawo/90cf4a4678d2ae5b6b6bc7b1c51a60e1 to your computer and use it in GitHub Desktop.
Save takawo/90cf4a4678d2ae5b6b6bc7b1c51a60e1 to your computer and use it in GitHub Desktop.
let blendmodeArr;
function setup() {
createCanvas(800, 800);
colorMode(HSB, 360, 100, 100, 100);
blendmodeArr = [BLEND, //ADD, DARKEST, LIGHTEST,
// DIFFERENCE,
EXCLUSION, MULTIPLY,
//SCREEN, REPLACE,
// REMOVE,
//OVERLAY, HARD_LIGHT, SOFT_LIGHT,
DODGE, BURN,
//SUBTRACT
];
}
function draw() {
// blendMode(BLEND);
// background(0, 0, random(100));
for (let i = 0; i < 1000; i++) {
blendMode(random(blendmodeArr));
fill(random(360), random(100), random(100));
noStroke();
let x = random(width);
let y = random(height);
let d = random(300);
ellipse(x, y, d);
}
noLoop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment