// noiser(klein) [2004] // // Author: Georg Dümlein, Dipl. Des // info@preset.de // http://www.preset.de/ // // // // THIS CODE IS PROVIDED UNDER THE TERMS OF THE // CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). // THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER // APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN // AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW // IS PROHIBITED. // // You are free: // // to copy, distribute, display, and perform the work // to make derivative works // to make commercial use of the work // Under the following conditions: // Attribution. You must give the original author credit. // For any reuse or distribution, you must make clear to others the license terms of this work. // Any of these conditions can be waived if you get permission from the copyright holder. // Your fair use and other rights are in no way affected by the above. // // Details: http://creativecommons.org/licenses/by/2.0/legalcode int dimx = 250; int dimy = 89; float i,j; BGraphics buf; BImage offscreenImage; BImage mask; int mouseState; int thePixel; void setup() { size(dimx, dimy); framerate(16); stroke(255); background(51); stroke(0, 0, 0); buf = new BGraphics(dimx,dimy); buf.background(51); offscreenImage = new BImage(buf.pixels, buf.width, buf.height, RGBA); mask = loadImage("stripes.gif"); i=0; j=0; if(mouseX>0 && mouseX0 && mouseYdimx){ i=0; } for(float j=0; j1){ buf.fill(51,51,51,51); }else{ buf.fill(255,255,255,30); } float test=random(10)+1; buf.rect(i,j,5,j+test); j=j+test; } if(mouseState==1){ tint(357,61,255); } for (int z=0; z