Skip to content

Instantly share code, notes, and snippets.

View ArthurYidi's full-sized avatar

Arthur Yidi ArthurYidi

  • San Francisco, California
View GitHub Profile
@ArthurYidi
ArthurYidi / gist:a2a6fbdb59f0580016fc
Last active August 29, 2015 14:04
Processing blendMode()
size(100, 100);
// drawing surface with no background
PGraphics pg = createGraphics(100, 100);
pg.beginDraw();
pg.background(255);
pg.blendMode(DIFFERENCE);
pg.fill(255);
pg.noStroke();
pg.ellipse(40, 50, 30, 30);