/*************************************** * 2008.3.29 Dongyoon Park * cre8ive.park@gmail.com * http://www.cre8ive.kr ****************************************/ void setup() { size(800,500); // set screen size. background(255); // set background color. frameRate(300); } // declare and initialize variables. int tintVar=100, tintIncrease = 10; int x = 50, y=200, transparency=255; void draw() { PImage img1; img1 = loadImage("Rev_IMG_1585.JPG"); PFont font; font = loadFont("Myriad-BdWeb-70.vlw"); if((tintVar>255) || (tintVar<=0)) tintIncrease = -tintIncrease; tintVar = tintVar + tintIncrease; tint(tintVar); image(img1,0,0); textFont(font); String strText1 = "Perrier The original."; String strText2 = "The one and only - the way it's been since 1793"; fill(255); text(strText1,50,100); textSize(18); text(strText2,50,150); textSize(70); text(frameCount,50,220); /* fill(colorVar1,colorVar2, colorVar3, x%100); if (mousePressed == true) stroke(x,y,x+100,y+100); // rect(x,y,sizeVar,sizeVar); else ellipse(x,y,sizeVar,sizeVar); */ }