Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
broken blend modes :/
size(100, 100);
// drawing surface with no background
PGraphics pg = createGraphics(100, 100);
pg.beginDraw();
pg.blendMode(DIFFERENCE); // same for SUBTRACT!
pg.fill(#ffffff);
pg.noStroke();
pg.ellipse(50, 50, 30, 30);
pg.endDraw();
// display the surface
background(255);
image(pg, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment