User Tools

Site Tools


cs276:tintdemo
/* 
 *  TintDemo - modify the tint of an image (Basic Mode)
 *
 *  Author: spc
 */

PImage img;
img = loadImage("kate3.jpg");
size(img.width, img.height);

// tint with a purplish-blue
tint(0, 200, 200);
image(img, 0, 0);

// disable tint and draw image over by half its width
noTint();
image(img, (img.width/2), 0);
cs276/tintdemo.txt · Last modified: 2008/09/08 16:36 by scarl