Updated blend API and examples using it.

This commit is contained in:
codeanticode
2011-02-07 07:32:38 +00:00
parent 2ec3cec997
commit 97404dbf22
4 changed files with 119 additions and 150 deletions
@@ -26,11 +26,11 @@ void draw() {
tint(255, 255);
image(pic1, 0, 0, pic1.width, pic1.height);
blend(selMode);
screenBlend(selMode);
tint(255, picAlpha);
image(pic2, 0, 0, pic2.width, pic2.height);
noBlend();
screenBlend(REPLACE);
fill(200, 50, 50);
rect(0, height - 50, map(picAlpha, 0, 255, 0, width), 50);
fill(255);