Processing Experiments

var gl,noctaves,c; function setup() { createCanvas(windowWidth, windowHeight,WEBGL); gl=this.canvas.getContext('webgl'); gl.disable(gl.DEPTH_TEST); noctaves=4; c=[]; initc(); test=new p5.Shader(this._renderer,vert,frag);//shaders are loaded shader(test);//shaders are applied } function initc(){ for(var i=0;i<22;i++){ c[i]=random(-5,5); } } function draw() { test.setUniform("iResolution", [width,height]);//pass some values to the shader test.setUniform("iTime", millis()*.001); test.setUniform('iMouse',[mouseX,mouseY]); test.setUniform("noctaves",noctaves); test.setUniform("c",c); shader(test); box(width/2); } function mouseReleased(){ noctaves=(noctaves==5)?4:noctaves+1; if(noctaves==4)initc(); }[/et_pb_code][/et_pb_column][/et_pb_row][/et_pb_section][et_pb_section fb_built="1" _builder_version="4.7.7" _module_preset="default"][et_pb_row _builder_version="4.7.7" _module_preset="default" hover_enabled="0" sticky_enabled="0"][et_pb_column _builder_version="4.7.7" _module_preset="default" type="4_4"][et_pb_code _builder_version="4.7.7" _module_preset="default" hover_enabled="0" sticky_enabled="0" custom_margin="1px|||||" link_option_url="http://digitalsoundandpicture.com/wp-content/uploads/2021/01/application.windows32.zip"]Download the 32 bit vesion of the "Girl" application.windows32.zip[/et_pb_code][/et_pb_column][/et_pb_row][et_pb_row _builder_version="4.7.7" _module_preset="default"][et_pb_column _builder_version="4.7.7" _module_preset="default" type="4_4"][et_pb_code _builder_version="4.7.7" _module_preset="default" hover_enabled="0" sticky_enabled="0" link_option_url="https://drive.google.com/file/d/1q1Tqy2qYGE1S2ajcZL8K5aBH6Gz-2fcS/view?usp=sharing"]Google drive 64 bit version [/et_pb_code][/et_pb_column][/et_pb_row][/et_pb_section][et_pb_section fb_built="1" _builder_version="4.7.7" _module_preset="default" custom_padding="||12px|||"][et_pb_row _builder_version="4.7.7" _module_preset="default"][et_pb_column _builder_version="4.7.7" _module_preset="default" type="4_4"][et_pb_menu _builder_version="4.7.7" _module_preset="default" hover_enabled="0" sticky_enabled="0"][/et_pb_menu][/et_pb_column][/et_pb_row][/et_pb_section]