// noiser(groß) [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 = 550; int dimy = 100; float i,j; BGraphics buf,blend; BImage offscreenImage,blendImage; int mouseState; int thePixel; void setup() { size(dimx, dimy); framerate(16); stroke(255); background(102); stroke(0, 0, 0); buf = new BGraphics(dimx,dimy); blend=new BGraphics(125,dimy); buf.background(102); offscreenImage = new BImage(buf.pixels, buf.width, buf.height, RGBA); for(int xres=0;xres<=125;xres++){ for(int yres=0; yres <=dimy;yres++){ color nowColor=color(102,102,102,255-xres*2); blend.set(xres,yres,nowColor); } } blendImage = new BImage(blend.pixels, blend.width, blend.height, RGBA); i=0; j=0; if(mouseX>0 && mouseX0 && mouseYdimx){ i=0; } for(float j=0; j1){ buf.fill(102,102,102,21); }else{ if(mouseState==1){ buf.colorMode(HSB,255); buf.fill(140,102,241,71); buf.colorMode(RGB); }else{ buf.fill(255,255,255,75); } } float test=random(10)+1; buf.rect(i,j,5,j+test); j=j+test; } for (int z=0; z