From caa62f8071ca938c8ae47f08e9ea8ef2fac3b135 Mon Sep 17 00:00:00 2001 From: Thomas Davis Date: Mon, 7 Apr 2014 18:15:52 -0400 Subject: [PATCH] Updated packages via auto-update.js --- ajax/libs/p5.js/0.2.4/p5.min.js | 2 ++ ajax/libs/p5.js/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 ajax/libs/p5.js/0.2.4/p5.min.js diff --git a/ajax/libs/p5.js/0.2.4/p5.min.js b/ajax/libs/p5.js/0.2.4/p5.min.js new file mode 100644 index 000000000..fe5012ba5 --- /dev/null +++ b/ajax/libs/p5.js/0.2.4/p5.min.js @@ -0,0 +1,2 @@ +!function(){var shim=function(){window.requestDraw=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}()}({}),constants=function(){var t=Math.PI;return{ARROW:"default",CROSS:"crosshair",HAND:"pointer",MOVE:"move",TEXT:"text",WAIT:"wait",HALF_PI:t/2,PI:t,QUARTER_PI:t/4,TAU:2*t,TWO_PI:2*t,DEGREES:"degrees",RADIANS:"radians",CORNER:"corner",CORNERS:"corners",RADIUS:"radius",RIGHT:"right",LEFT:"left",CENTER:"center",POINTS:"points",LINES:"lines",TRIANGLES:"triangles",TRIANGLE_FAN:"triangles_fan",TRIANGLE_STRIP:"triangles_strip",QUADS:"quads",QUAD_STRIP:"quad_strip",CLOSE:"close",OPEN:"open",CHORD:"chord",PIE:"pie",PROJECT:"square",SQUARE:"butt",ROUND:"round",BEVEL:"bevel",MITER:"miter",RGB:"rgb",HSB:"hsb",AUTO:"auto",NORMAL:"normal",ITALIC:"italic",BOLD:"bold"}}({}),core=function(t,e,n){"use strict";var n=n,o=function(t,e){if(this.frameCount=0,this.focused=!0,this.displayWidth=screen.width,this.displayHeight=screen.height,this.shapeKind=null,this.shapeInited=!1,this.mouseX=0,this.mouseY=0,this.pmouseX=0,this.pmouseY=0,this.winMouseX=0,this.winMouseY=0,this.pwinMouseX=0,this.pwinMouseY=0,this.mouseButton=0,this.key="",this.keyCode=0,this.keyDown=!1,this.touchX=0,this.touchY=0,this.pWriters=[],this._bezierDetail=20,this._curveDetail=20,this.curElement=null,this.matrices=[[1,0,0,1,0,0]],this.settings={loop:!0,fill:!1,updateInterval:0,rectMode:n.CORNER,imageMode:n.CORNER,ellipseMode:n.CENTER,colorMode:n.RGB,mousePressed:!1,angleMode:n.RADIANS},this._startTime=(new Date).getTime(),this._userNode=e,this._preloadCount=0,this._isGlobal=!1,this._frameRate=0,this._lastFrameTime=0,this._targetFrameRate=60,this._textLeading=15,this._textFont="sans-serif",this._textSize=12,this._textStyle=n.NORMAL,this._curveDetail=20,this.styles=[],t)t(this),window.onmousemove=function(t){this.onmousemove(t)}.bind(this),window.onmousedown=function(t){this.onmousedown(t)}.bind(this),window.onmouseup=function(t){this.onmouseup(t)}.bind(this),window.onmouseclick=function(t){this.onmouseclick(t)}.bind(this),window.onmousewheel=function(t){this.onmousewheel(t)}.bind(this),window.onkeydown=function(t){this.onkeydown(t)}.bind(this),window.onkeyup=function(t){this.onkeyup(t)}.bind(this),window.onkeypress=function(t){this.onkeypress(t)}.bind(this),window.ontouchstart=function(t){this.ontouchstart(t)}.bind(this),window.ontouchmove=function(t){this.ontouchmove(t)}.bind(this),window.ontouchend=function(t){this.ontouchend(t)}.bind(this);else{this._isGlobal=!0;for(var r in o.prototype)window[r]=o.prototype[r].bind(this);for(var i in this)this.hasOwnProperty(i)&&(window[i]=this[i]);for(var s in n)n.hasOwnProperty(s)&&(window[s]=n[s])}"complete"===document.readyState?this._start():window.addEventListener("load",this._start.bind(this),!1)};return o.prototype._start=function(){this.createCanvas(800,600,!0),this._userNode&&"string"==typeof this._userNode&&(this._userNode=document.getElementById(this._userNode));var t=this.preload||window.preload,e=this._isGlobal?window:this;t?(e.loadJSON=function(t){return e._preload("loadJSON",t)},e.loadStrings=function(t){return e._preload("loadStrings",t)},e.loadXML=function(t){return e._preload("loadXML",t)},e.loadImage=function(t){return e._preload("loadImage",t)},t(),e.loadJSON=o.prototype.loadJSON,e.loadStrings=o.prototype.loadStrings,e.loadXML=o.prototype.loadXML,e.loadImage=o.prototype.loadImage):(this._setup(),this._runFrames(),this._draw())},o.prototype._preload=function(t,e){var n=this._isGlobal?window:this;return n._setProperty("preload-count",n._preloadCount+1),o.prototype[t].call(n,e,function(){n._setProperty("preload-count",n._preloadCount-1),0===n._preloadCount&&(n._setup(),n._runFrames(),n._draw())})},o.prototype._setup=function(){var t=this.setup||window.setup;"function"==typeof t&&t()},o.prototype._draw=function(){var t=(new Date).getTime();this._frameRate=1e3/(t-this._lastFrameTime),this._lastFrameTime=t;var e=this.draw||window.draw;this.settings.loop&&setTimeout(function(){window.requestDraw(this._draw.bind(this))}.bind(this),1e3/this._targetFrameRate),"function"==typeof e&&e(),this.curElement.context.setTransform(1,0,0,1,0,0)},o.prototype._runFrames=function(){this.updateInterval&&clearInterval(this.updateInterval),this.updateInterval=setInterval(function(){this._setProperty("frameCount",this.frameCount+1)}.bind(this),1e3/this._targetFrameRate)},o.prototype._applyDefaults=function(){this.curElement.context.fillStyle="#FFFFFF",this.curElement.context.strokeStyle="#000000",this.curElement.context.lineCap=n.ROUND},o.prototype._setProperty=function(t,e){this[t]=e,this._isGlobal&&(window[t]=e)},o}({},shim,constants),mathpvector=function(){"use strict";function t(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}return t.prototype.set=function(e,n,o){return e instanceof t?this.set(e.x,e.y,e.z):e instanceof Array?this.set(e[0],e[1],e[2]):(this.x=e||0,this.y=n||0,this.z=o||0,void 0)},t.prototype.get=function(){return new t(this.x,this.y,this.z)},t.prototype.add=function(e,n,o){return e instanceof t?this.add(e.x,e.y,e.z):e instanceof Array?this.add(e[0],e[1],e[2]):(this.x+=e||0,this.y+=n||0,this.z+=o||0,this)},t.prototype.sub=function(e,n,o){return e instanceof t?this.sub(e.x,e.y,e.z):e instanceof Array?this.sub(e[0],e[1],e[2]):(this.x-=e||0,this.y-=n||0,this.z-=o||0,this)},t.prototype.mult=function(t){return this.x*=t||0,this.y*=t||0,this.z*=t||0,this},t.prototype.div=function(t){return this.x/=t,this.y/=t,this.z/=t,this},t.prototype.mag=function(){return Math.sqrt(this.magSq())},t.prototype.magSq=function(){var t=this.x,e=this.y,n=this.z;return t*t+e*e+n*n},t.prototype.dot=function(e,n,o){return e instanceof t?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(n||0)+this.z*(o||0)},t.prototype.cross=function(e){var n=this.y*e.z-this.z*e.y,o=this.z*e.x-this.x*e.z,r=this.x*e.y-this.y*e.x;return new t(n,o,r)},t.prototype.dist=function(t){var e=t.get().sub(this);return e.mag()},t.prototype.normalize=function(){return this.div(this.mag())},t.prototype.limit=function(t){var e=this.magSq();return e>t*t&&(this.div(Math.sqrt(e)),this.mult(t)),this},t.prototype.setMag=function(t){return this.normalize().mult(t)},t.prototype.heading=function(){return Math.atan2(this.y,this.x)},t.prototype.rotate2D=function(t){var e=this.heading()+t,n=this.mag();return this.x=Math.cos(e)*n,this.y=Math.sin(e)*n,this},t.prototype.lerp=function(e,n,o,r){return e instanceof t?this.lerp(e.x,e.y,e.z,n):(this.x+=(e-this.x)*r||0,this.y+=(n-this.y)*r||0,this.z+=(o-this.z)*r||0,this)},t.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},t.fromAngle=function(e){return new t(Math.cos(e),Math.sin(e),0)},t.random2D=function(){return this.fromAngle(Math.random(2*Math.PI))},t.random3D=function(){var e=Math.random()*Math.PI*2,n=2*Math.random()-1,o=Math.sqrt(1-n*n)*Math.cos(e),r=Math.sqrt(1-n*n)*Math.sin(e);return new t(o,r,n)},t.add=function(t,e){return t.get().add(e)},t.sub=function(t,e){return t.get().sub(e)},t.mult=function(t,e){return t.get().mult(e)},t.div=function(t,e){return t.get().div(e)},t.dot=function(t,e){return t.dot(e)},t.cross=function(t,e){return t.cross(e)},t.dist=function(t,e){return t.dist(e)},t.lerp=function(t,e,n){return t.get().lerp(e,n)},t.angleBetween=function(t,e){return Math.acos(t.dot(e)/(t.mag()*e.mag()))},t}({}),colorcreating_reading=function(t,e){"use strict";var n=e;return n.prototype.alpha=function(t){return t.length>3?t[3]:255},n.prototype.blue=function(t){return t.length>2?t[2]:0},n.prototype.brightness=function(t){return t.length>2?t[2]:0},n.prototype.color=function(){return this.getNormalizedColor(arguments)},n.prototype.green=function(t){return t.length>2?t[1]:0},n.prototype.hue=function(t){return t.length>2?t[0]:0},n.prototype.lerpColor=function(t,e,o){for(var r=[],i=0;i2?t[0]:0},n.prototype.saturation=function(t){return t.length>2?t[1]:0},n}({},core),colorsetting=function(t,e,n){"use strict";var o=e,n=n;return o.prototype.background=function(){var t=this.getNormalizedColor(arguments),e=this.curElement.context.fillStyle;this.curElement.context.fillStyle=this.getCSSRGBAColor(t),this.curElement.context.fillRect(0,0,this.width,this.height),this.curElement.context.fillStyle=e},o.prototype.clear=function(){this.curElement.context.clearRect(0,0,this.width,this.height)},o.prototype.colorMode=function(t){(t===n.RGB||t===n.HSB)&&(this.settings.colorMode=t)},o.prototype.fill=function(){var t=this.getNormalizedColor(arguments);this.curElement.context.fillStyle=this.getCSSRGBAColor(t)},o.prototype.noFill=function(){this.curElement.context.fillStyle="rgba(0,0,0,0)"},o.prototype.noStroke=function(){this.curElement.context.strokeStyle="rgba(0,0,0,0)"},o.prototype.stroke=function(){var t=this.getNormalizedColor(arguments);this.curElement.context.strokeStyle=this.getCSSRGBAColor(t)},o.prototype.getNormalizedColor=function(t){var e,o,r,i,s,a="number"==typeof t[0].length?t[0]:t;return a.length>=3?(e=a[0],o=a[1],r=a[2],i="number"==typeof a[3]?a[3]:255):(e=o=r=a[0],i="number"==typeof a[1]?a[1]:255),s=this.settings.colorMode===n.HSB?this.hsv2rgb(e,o,r).concat(i):[e,o,r,i]},o.prototype.hsv2rgb=function(t,e,n){return[t,e,n]},o.prototype.getCSSRGBAColor=function(t){var e=t.map(function(t){return Math.floor(t)}),n=e[3]?e[3]/255:1;return"rgba("+e[0]+","+e[1]+","+e[2]+","+n+")"},o}({},core,constants),dataarray_functions=function(t,e){"use strict";var n=e;return n.prototype.append=function(t,e){return t.push(e),t},n.prototype.arrayCopy=function(t,e,n,o,r){var i,s;"undefined"!=typeof r?(s=Math.min(r,t.length),i=o,t=t.slice(e,s+e)):("undefined"!=typeof n?(s=n,s=Math.min(s,t.length)):s=t.length,i=0,n=e,t=t.slice(0,s)),Array.prototype.splice.apply(n,[i,s].concat(t))},n.prototype.concat=function(t,e){return t.concat(e)},n.prototype.reverse=function(t){return t.reverse()},n.prototype.shorten=function(t){return t.pop(),t},n.prototype.sort=function(t,e){var n=e?t.slice(0,Math.min(e,t.length)):t,o=e?t.slice(Math.min(e,t.length)):[];return n="string"==typeof n[0]?n.sort():n.sort(function(t,e){return t-e}),n.concat(o)},n.prototype.splice=function(t,e,n){return Array.prototype.splice.apply(t,[n,0].concat(e)),t},n.prototype.subset=function(t,e,n){return"undefined"!=typeof n?t.slice(e,e+n):t.slice(e,t.length)},n}({},core),datastring_functions=function(t,e){"use strict";function n(){var t=arguments[0],e=0>t,n=e?t.toString().substring(1):t.toString(),o=n.indexOf("."),r=-1!==o?n.substring(0,o):n,i=-1!==o?n.substring(o+1):"",s=e?"-":"";if(3===arguments.length){for(var a=0;a1&&(n=n.substring(0,arguments[1]+1)),o+n}function r(){return parseFloat(arguments[0])>0?"+"+arguments[0].toString():arguments[0].toString()}function i(){return parseFloat(arguments[0])>0?" "+arguments[0].toString():arguments[0].toString()}var s=e;return s.prototype.join=function(t,e){return t.join(e)},s.prototype.match=function(t,e){return t.match(e)},s.prototype.matchAll=function(t,e){for(var n=new RegExp(e,"g"),o=n.exec(t),r=[];null!==o;)r.push(o),o=n.exec(t);return r},s.prototype.nf=function(){if(arguments[0]instanceof Array){var t=arguments[1],e=arguments[2];return arguments[0].map(function(o){return n(o,t,e)})}return n.apply(this,arguments)},s.prototype.nfc=function(){if(arguments[0]instanceof Array){var t=arguments[1];return arguments[0].map(function(e){return o(e,t)})}return o.apply(this,arguments)},s.prototype.nfp=function(){var t=this.nf(arguments);return t instanceof Array?t.map(r):r(t)},s.prototype.nfs=function(){var t=this.nf(arguments);return t instanceof Array?t.map(i):i(t)},s.prototype.split=function(t,e){return t.split(e)},s.prototype.splitTokens=function(){var t=arguments.length>0?arguments[1]:/\s/g;return arguments[0].split(t).filter(function(t){return t})},s.prototype.trim=function(t){return t instanceof Array?t.map(this.trim):t.trim()},s}({},core),inputmouse=function(t,e,n){"use strict";var o=e,n=n;return o.prototype.isMousePressed=o.prototype.mouseIsPressed=function(){return this.settings.mousePressed},o.prototype.updateMouseCoords=function(t){this._setProperty("pmouseX",this.mouseX),this._setProperty("pmouseY",this.mouseY),this._setProperty("mouseX",t.pageX-this.curElement.x),this._setProperty("mouseY",t.pageY-this.curElement.y),this._setProperty("pwinMouseX",this.winMouseX),this._setProperty("pwinMouseY",this.winMouseY),this._setProperty("winMouseX",t.pageX),this._setProperty("winMouseY",t.pageY)},o.prototype.setMouseButton=function(t){1===t.button?this._setProperty("mouseButton",n.CENTER):2===t.button?this._setProperty("mouseButton",n.RIGHT):this._setProperty("mouseButton",n.LEFT)},o.prototype.onmousemove=function(t){var e=this._isGlobal?window:this;this.updateMouseCoords(t),this.isMousePressed()||"function"!=typeof e.mouseMoved||e.mouseMoved(t),this.isMousePressed()&&"function"==typeof e.mouseDragged&&e.mouseDragged(t)},o.prototype.onmousedown=function(t){var e=this._isGlobal?window:this;this.settings.mousePressed=!0,this.setMouseButton(t),"function"==typeof e.mousePressed&&e.mousePressed(t)},o.prototype.onmouseup=function(t){var e=this._isGlobal?window:this;this.settings.mousePressed=!1,"function"==typeof e.mouseReleased&&e.mouseReleased(t)},o.prototype.onmouseclick=function(t){var e=this._isGlobal?window:this;"function"==typeof e.mouseClicked&&e.mouseClicked(t)},o.prototype.onmousewheel=function(t){var e=this._isGlobal?window:this;"function"==typeof e.mouseWheel&&e.mouseWheel(t)},o}({},core,constants),inputtouch=function(t,e){"use strict";var n=e;return n.prototype.setTouchPoints=function(t){this._setProperty("touchX",t.changedTouches[0].pageX),this._setProperty("touchY",t.changedTouches[0].pageY);for(var e=[],n=0;n-1)o=t;else if("string"==typeof t){var s="";e&&n&&"number"==typeof e&&"number"==typeof n&&(s=e+" "+n),o="http://"!==t.substring(0,6)?"url("+t+") "+s+", auto":/\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(t)?"url("+t+") "+s+", auto":t}r.style.cursor=o},o.prototype.frameRate=function(t){return"undefined"==typeof t?this._frameRate:(this._setProperty("_targetFrameRate",t),this._runFrames(),this)},o.prototype.getFrameRate=function(){return this.frameRate()},o.prototype.setFrameRate=function(t){return this.frameRate(t)},o.prototype.noCursor=function(){this.curElement.elt.style.cursor="none"},o}({},core,constants),canvas=function(t,e){var e=e;return{modeAdjust:function(t,n,o,r,i){return i===e.CORNER?{x:t,y:n,w:o,h:r}:i===e.CORNERS?{x:t,y:n,w:o-t,h:r-n}:i===e.RADIUS?{x:t-o,y:n-r,w:2*o,h:2*r}:i===e.CENTER?{x:t-.5*o,y:n-.5*r,w:o,h:r}:void 0},arcModeAdjust:function(t,n,o,r,i){return i===e.CORNER?{x:t+.5*o,y:n+.5*r,w:o,h:r}:i===e.CORNERS?{x:t,y:n,w:o+t,h:r+n}:i===e.RADIUS?{x:t,y:n,w:2*o,h:2*r}:i===e.CENTER?{x:t,y:n,w:o,h:r}:void 0}}}({},constants),filters=function(){"use strict";var t={};return t._toPixels=function(t){return t instanceof ImageData?t.data:t.getContext("2d").getImageData(0,0,t.width,t.height).data},t._getARGB=function(t,e){var n=4*e;return t[n+3]<<24&4278190080|t[n]<<16&16711680|t[n+1]<<8&65280|255&t[n+2]},t._setPixels=function(t,e){for(var n=0,o=0,r=t.length;r>o;o++)n=4*o,t[n+0]=(16711680&e[o])>>>16,t[n+1]=(65280&e[o])>>>8,t[n+2]=255&e[o],t[n+3]=(4278190080&e[o])>>>24},t._toImageData=function(t){return t instanceof ImageData?t:t.getContext("2d").getImageData(0,0,t.width,t.height)},t._createImageData=function(e,n){return t._tmpCanvas=document.createElement("canvas"),t._tmpCtx=t._tmpCanvas.getContext("2d"),this._tmpCtx.createImageData(e,n)},t.apply=function(t,e,n){var o=t.getContext("2d"),r=o.getImageData(0,0,t.width,t.height),i=e(r,n);i instanceof ImageData?o.putImageData(i,0,0,0,0,t.width,t.height):o.putImageData(r,0,0,0,0,t.width,t.height)},t.threshold=function(e,n){var o=t._toPixels(e);void 0===n&&(n=.5);for(var r=Math.floor(255*n),i=0;i=r?255:0,o[i]=o[i+1]=o[i+2]=s}},t.gray=function(e){for(var n=t._toPixels(e),o=0;on||n>255)throw new Error("Level must be greater than 2 and less than 255 for posterize");for(var r=n-1,i=0;i>16&255,a=o[i]>>8&255,u=255&o[i];s=255*(s*n>>8)/r,a=255*(a*n>>8)/r,u=255*(u*n>>8)/r,o[i]=4278190080&o[i]|s<<16|a<<8|u}},t.dilate=function(e){for(var n,o,r,i,s,a,u,c,h,p,l,f,d,m,y,g,x,v=t._toPixels(e),w=0,E=v.length?v.length/4:0,_=new Int32Array(E);E>w;)for(n=w,o=w+e.width;o>w;)r=i=t._getARGB(v,w),u=w-1,a=w+1,c=w-e.width,h=w+e.width,n>u&&(u=w),a>=o&&(a=w),0>c&&(c=0),h>=E&&(h=w),f=t._getARGB(v,c),l=t._getARGB(v,u),d=t._getARGB(v,h),p=t._getARGB(v,a),s=77*(r>>16&255)+151*(r>>8&255)+28*(255&r),y=77*(l>>16&255)+151*(l>>8&255)+28*(255&l),m=77*(p>>16&255)+151*(p>>8&255)+28*(255&p),g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f),x=77*(d>>16&255)+151*(d>>8&255)+28*(255&d),y>s&&(i=l,s=y),m>s&&(i=p,s=m),g>s&&(i=f,s=g),x>s&&(i=d,s=x),_[w++]=i;t._setPixels(v,_)},t.erode=function(e){for(var n,o,r,i,s,a,u,c,h,p,l,f,d,m,y,g,x,v=t._toPixels(e),w=0,E=v.length?v.length/4:0,_=new Int32Array(E);E>w;)for(n=w,o=w+e.width;o>w;)r=i=t._getARGB(v,w),u=w-1,a=w+1,c=w-e.width,h=w+e.width,n>u&&(u=w),a>=o&&(a=w),0>c&&(c=0),h>=E&&(h=w),f=t._getARGB(v,c),l=t._getARGB(v,u),d=t._getARGB(v,h),p=t._getARGB(v,a),s=77*(r>>16&255)+151*(r>>8&255)+28*(255&r),y=77*(l>>16&255)+151*(l>>8&255)+28*(255&l),m=77*(p>>16&255)+151*(p>>8&255)+28*(255&p),g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f),x=77*(d>>16&255)+151*(d>>8&255)+28*(255&d),s>y&&(i=l,s=y),s>m&&(i=p,s=m),s>g&&(i=f,s=g),s>x&&(i=d,s=x),_[w++]=i;t._setPixels(v,_)},t}({}),image=function(t,e,n,o,r){"use strict";function i(t,e){this.width=t,this.height=e,this.canvas=document.createElement("canvas"),this.canvas.width=this.width,this.canvas.height=this.height,this.pixels=[]}var s=e,n=n,o=o,a=r;return s.prototype.createImage=function(t,e){return new i(t,e)},s.prototype.loadImage=function(t,e){var n=new Image,o=new i(1,1,this);return n.onload=function(){o.width=o.canvas.width=n.width,o.height=o.canvas.height=n.height,o.canvas.getContext("2d").drawImage(n,0,0),"undefined"!=typeof e&&e(o)},n.crossOrigin="Anonymous",n.src=t,o},s.prototype.image=function(t,e,o,r,i){void 0===r&&(r=t.width),void 0===i&&(i=t.height);var s=n.modeAdjust(e,o,r,i,this.settings.imageMode);this.curElement.context.drawImage(t.canvas,s.x,s.y,s.w,s.h)},s.prototype.imageMode=function(t){(t===o.CORNER||t===o.CORNERS||t===o.CENTER)&&(this.settings.imageMode=t)},i.prototype.loadPixels=function(){for(var t=0,e=0,n=this.width,o=this.height,r=this.canvas.getContext("2d").getImageData(t,e,n,o),i=r.data,s=[],a=0;athis.width||e>this.height)return void 0;var r=this.canvas.getContext("2d").getImageData(t,e,n,o),s=r.data;if(1===n&&1===o){for(var a=[],u=0;u0&&this.loadPixels()},i.prototype.copy=function(){var t,e,n,o,r,i,s,a,u;if(9===arguments.length)t=arguments[0],e=arguments[1],n=arguments[2],o=arguments[3],r=arguments[4],i=arguments[5],s=arguments[6],a=arguments[7],u=arguments[8];else{if(8!==arguments.length)throw new Error("Signature not supported");e=arguments[0],n=arguments[1],o=arguments[2],r=arguments[3],i=arguments[4],s=arguments[5],a=arguments[6],u=arguments[7],t=this}this.canvas.getContext("2d").drawImage(t.canvas,e,n,o,r,i,s,a,u)},i.prototype.mask=function(t){void 0===t&&(t=this);var e=this.canvas.getContext("2d").globalCompositeOperation,n=[t,0,0,t.width,t.height,0,0,this.width,this.height];this.canvas.getContext("2d").globalCompositeOperation="destination-out",this.copy.apply(this,n),this.canvas.getContext("2d").globalCompositeOperation=e},i.prototype.filter=function(t,e){a.apply(this.canvas,a[t.toLowerCase()],e)},i.prototype.blend=function(){var t=this.canvas.getContext("2d").globalCompositeOperation,e=arguments[arguments.length-1],n=Array.prototype.slice.call(arguments,0,arguments.length-1);this.canvas.getContext("2d").globalCompositeOperation=e,this.copy.apply(this,n),this.canvas.getContext("2d").globalCompositeOperation=t},i.prototype.save=function(t){var e;switch(t.toLowerCase()){case"png":e="image/png";break;case"jpeg":e="image/jpeg";break;case"jpg":e="image/jpeg";break;default:e="image/png"}if(void 0!==e){var n="image/octet-stream",o=this.canvas.toDataURL(e);o=o.replace(e,n),window.location.href=o}},i}({},core,canvas,constants,filters),imageloading_displaying=function(t,e){"use strict";var n=e;return n.prototype.blend=function(){},n.prototype.copy=function(){},n.prototype.filter=function(){},n.prototype.get=function(t,e){var n=this.width,o=this.height,r=this.curElement.context.getImageData(0,0,n,o).data;if("undefined"!=typeof t&&"undefined"!=typeof e){if(t>=0&&n>t&&e>=0&&o>e){var i=4*e*n+4*t,s=[r[i],r[i+1],r[i+2],r[i+3]];return s}return[0,0,0,255]}return[0,0,0,255]},n.prototype.loadPixels=function(){for(var t=this.width,e=this.height,n=this.curElement.context.getImageData(0,0,t,e).data,o=[],r=0;r0;)self._completeHandlers.shift()(t)}function success(resp){resp="jsonp"!==type?self.request:resp;var filteredResponse=globalSetupOptions.dataFilter(resp.responseText,type),r=filteredResponse;try{resp.responseText=r}catch(e){}if(r)switch(type){case"json":try{resp=win.JSON?win.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r;break;case"xml":resp=resp.responseXML&&resp.responseXML.parseError&&resp.responseXML.parseError.errorCode&&resp.responseXML.parseError.reason?null:resp.responseXML}for(self._responseArgs.resp=resp,self._fulfilled=!0,fn(resp),self._successHandler(resp);self._fulfillmentHandlers.length>0;)resp=self._fulfillmentHandlers.shift()(resp);complete(resp)}function error(t,e,n){for(t=self.request,self._responseArgs.resp=t,self._responseArgs.msg=e,self._responseArgs.t=n,self._erred=!0;self._errorHandlers.length>0;)self._errorHandlers.shift()(t,e,n);complete(t)}this.url="string"==typeof o?o:o.url,this.timeout=null,this._fulfilled=!1,this._successHandler=function(){},this._fulfillmentHandlers=[],this._errorHandlers=[],this._completeHandlers=[],this._erred=!1,this._responseArgs={};var self=this,type=o.type||setType(this.url);fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){self.abort()},o.timeout)),o.success&&(this._successHandler=function(){o.success.apply(o,arguments)}),o.error&&this._errorHandlers.push(function(){o.error.apply(o,arguments)}),o.complete&&this._completeHandlers.push(function(){o.complete.apply(o,arguments)}),this.request=getRequest.call(this,success,error)}function reqwest(t,e){return new Reqwest(t,e)}function normalize(t){return t?t.replace(/\r?\n/g,"\r\n"):""}function serial(t,e){var n,o,r,i,s=t.name,a=t.tagName.toLowerCase(),u=function(t){t&&!t.disabled&&e(s,normalize(t.attributes.value&&t.attributes.value.specified?t.value:t.text))};if(!t.disabled&&s)switch(a){case"input":/reset|button|image|file/i.test(t.type)||(n=/checkbox/i.test(t.type),o=/radio/i.test(t.type),r=t.value,(!(n||o)||t.checked)&&e(s,normalize(n&&""===r?"on":r)));break;case"textarea":e(s,normalize(t.value)); +break;case"select":if("select-one"===t.type.toLowerCase())u(t.selectedIndex>=0?t.options[t.selectedIndex]:null);else for(i=0;t.length&&ie){var s=t;t=e,e=s}return n*(e-t)+t},n}({},core),mathnoise=function(t,e){"use strict";for(var n=e,o=4,r=1<m;m++)l[m]=Math.sin(m*d*h),f[m]=Math.cos(m*d*h);var y=p;y>>=1;var g;return n.prototype.noise=function(t,e,n){if(e=e||0,n=n||0,null==g){g=new Array(a+1);for(var h=0;a+1>h;h++)g[h]=Math.random()}0>t&&(t=-t),0>e&&(e=-e),0>n&&(n=-n);for(var l,d,m,x,v,w=Math.floor(t),E=Math.floor(e),_=Math.floor(n),M=t-w,b=e-E,R=n-_,S=0,C=.5,A=function(t){return.5*(1-f[Math.floor(t*y)%p])},T=0;u>T;T++){var P=w+(E<=1&&(w++,M--),b>=1&&(E++,b--),R>=1&&(_++,R--)}return S},n.prototype.noiseDetail=function(t,e){t>0&&(u=t),e>0&&(c=e)},n.prototype.noiseSeed=function(){},n}({},core),polargeometry=function(){return{degreesToRadians:function(t){return 2*Math.PI*t/360},radiansToDegrees:function(t){return 360*t/(2*Math.PI)}}}({}),mathtrigonometry=function(t,e,n,o){"use strict";var r=e,i=n,o=o;return r.prototype.acos=function(t){return this.settings.angleMode===o.RADIANS?Math.acos(t):i.radiansToDegrees(Math.acos(t))},r.prototype.asin=function(t){return this.settings.angleMode===o.RADIANS?Math.asin(t):i.radiansToDegrees(Math.asin(t))},r.prototype.atan=function(t){return this.settings.angleMode===o.RADIANS?Math.atan(t):i.radiansToDegrees(Math.atan(t))},r.prototype.atan2=function(t,e){return this.settings.angleMode===o.RADIANS?Math.atan2(t,e):i.radiansToDegrees(Math.atan2(t,e))},r.prototype.cos=function(t){return this.settings.angleMode===o.RADIANS?Math.cos(t):Math.cos(this.radians(t))},r.prototype.sin=function(t){return this.settings.angleMode===o.RADIANS?Math.sin(t):Math.sin(this.radians(t))},r.prototype.tan=function(t){return this.settings.angleMode===o.RADIANS?Math.tan(t):Math.tan(this.radians(t))},r.prototype.degrees=function(t){return i.radiansToDegrees(t)},r.prototype.radians=function(t){return i.degreesToRadians(t)},r.prototype.angleMode=function(t){(t===o.DEGREES||t===o.RADIANS)&&(this.settings.angleMode=t)},r}({},core,polargeometry,constants),outputfiles=function(t,e){"use strict";var n=e;return n.prototype.beginRaw=function(){},n.prototype.beginRecord=function(){},n.prototype.createOutput=function(){},n.prototype.createWriter=function(t){-1===this.pWriters.indexOf(t)&&(this.pWriters.name=new this.PrintWriter(t))},n.prototype.endRaw=function(){},n.prototype.endRecord=function(){},n.prototype.escape=function(t){return t},n.prototype.PrintWriter=function(t){this.name=t,this.content="",this.print=function(t){this.content+=t},this.println=function(t){this.content+=t+"\n"},this.flush=function(){this.content=""},this.close=function(){this.writeFile(this.content)}},n.prototype.saveBytes=function(){},n.prototype.saveJSONArray=function(){},n.prototype.saveJSONObject=function(){},n.prototype.saveStream=function(){},n.prototype.saveStrings=function(t){this.writeFile(t.join("\n"))},n.prototype.saveXML=function(){},n.prototype.selectOutput=function(){},n.prototype.writeFile=function(t){this.open("data:text/json;charset=utf-8,"+this.escape(t),"download")},n}({},core),outputimage=function(t,e){"use strict";var n=e;return n.prototype.save=function(){this.open(this.curElement.elt.toDataURL("image/png"))},n}({},core),outputtext_area=function(t,e){"use strict";var n=e;return n.prototype.print=function(){window.console&&console.log&&console.log.apply(console,arguments)},n.prototype.println=n.prototype.print,n}({},core),shape2d_primitives=function(t,e,n,o){"use strict";var r=e,n=n,o=o;return r.prototype.arc=function(t,e,r,i,s,a,u){var c=n.arcModeAdjust(t,e,r,i,this.settings.ellipseMode),h=c.h>c.w?c.h/2:c.w/2,p=c.h>c.w?c.w/c.h:1,l=c.h>c.w?1:c.h/c.w;return this.curElement.context.scale(p,l),this.curElement.context.beginPath(),this.curElement.context.arc(c.x,c.y,h,s,a),this.curElement.context.stroke(),u===o.CHORD||u===o.OPEN?this.curElement.context.closePath():(u===o.PIE||void 0===u)&&(this.curElement.context.lineTo(c.x,c.y),this.curElement.context.closePath()),this.curElement.context.fill(),u!==o.OPEN&&void 0!==u&&this.curElement.context.stroke(),this},r.prototype.ellipse=function(t,e,o,r){var i=n.modeAdjust(t,e,o,r,this.settings.ellipseMode),s=.5522848,a=i.w/2*s,u=i.h/2*s,c=i.x+i.w,h=i.y+i.h,p=i.x+i.w/2,l=i.y+i.h/2;return this.curElement.context.beginPath(),this.curElement.context.moveTo(i.x,l),this.curElement.context.bezierCurveTo(i.x,l-u,p-a,i.y,p,i.y),this.curElement.context.bezierCurveTo(p+a,i.y,c,l-u,c,l),this.curElement.context.bezierCurveTo(c,l+u,p+a,h,p,h),this.curElement.context.bezierCurveTo(p-a,h,i.x,l+u,i.x,l),this.curElement.context.closePath(),this.curElement.context.fill(),this.curElement.context.stroke(),this},r.prototype.line=function(t,e,n,o){return"rgba(0,0,0,0)"!==this.curElement.context.strokeStyle?(this.curElement.context.beginPath(),this.curElement.context.moveTo(t,e),this.curElement.context.lineTo(n,o),this.curElement.context.stroke(),this):void 0},r.prototype.point=function(t,e){var n=this.curElement.context.strokeStyle,r=this.curElement.context.fillStyle;return"rgba(0,0,0,0)"!==n?(t=Math.round(t),e=Math.round(e),this.curElement.context.fillStyle=n,this.curElement.context.lineWidth>1?(this.curElement.context.beginPath(),this.curElement.context.arc(t,e,this.curElement.context.lineWidth/2,0,o.TWO_PI,!1),this.curElement.context.fill()):this.curElement.context.fillRect(t,e,1,1),this.curElement.context.fillStyle=r,this):void 0},r.prototype.quad=function(t,e,n,o,r,i,s,a){return this.curElement.context.beginPath(),this.curElement.context.moveTo(t,e),this.curElement.context.lineTo(n,o),this.curElement.context.lineTo(r,i),this.curElement.context.lineTo(s,a),this.curElement.context.closePath(),this.curElement.context.fill(),this.curElement.context.stroke(),this},r.prototype.rect=function(t,e,o,r){var i=n.modeAdjust(t,e,o,r,this.settings.rectMode);return this.curElement.context.beginPath(),this.curElement.context.rect(i.x,i.y,i.w,i.h),this.curElement.context.fill(),this.curElement.context.stroke(),this},r.prototype.triangle=function(t,e,n,o,r,i){return this.curElement.context.beginPath(),this.curElement.context.moveTo(t,e),this.curElement.context.lineTo(n,o),this.curElement.context.lineTo(r,i),this.curElement.context.closePath(),this.curElement.context.fill(),this.curElement.context.stroke(),this},r}({},core,canvas,constants),shapeattributes=function(t,e,n){"use strict";var o=e,n=n;return o.prototype.ellipseMode=function(t){return(t===n.CORNER||t===n.CORNERS||t===n.RADIUS||t===n.CENTER)&&(this.settings.ellipseMode=t),this},o.prototype.noSmooth=function(){return this.curElement.context.mozImageSmoothingEnabled=!1,this.curElement.context.webkitImageSmoothingEnabled=!1,this},o.prototype.rectMode=function(t){return(t===n.CORNER||t===n.CORNERS||t===n.RADIUS||t===n.CENTER)&&(this.settings.rectMode=t),this},o.prototype.smooth=function(){return this.curElement.context.mozImageSmoothingEnabled=!0,this.curElement.context.webkitImageSmoothingEnabled=!0,this},o.prototype.strokeCap=function(t){return(t===n.ROUND||t===n.SQUARE||t===n.PROJECT)&&(this.curElement.context.lineCap=t),this},o.prototype.strokeJoin=function(t){return(t===n.ROUND||t===n.BEVEL||t===n.MITER)&&(this.curElement.context.lineJoin=t),this},o.prototype.strokeWeight=function(t){return this.curElement.context.lineWidth="undefined"==typeof t||0===t?1e-4:t,this},o}({},core,constants),shapecurves=function(t,e){"use strict";var n=e;return n.prototype.bezier=function(t,e,o,r,i,s,a,u){this.curElement.context.beginPath(),this.curElement.context.moveTo(t,e);for(var c=0;c<=this._bezierDetail;c++){var h=c/parseFloat(this._bezierDetail),p=n.prototype.bezierPoint(t,o,i,a,h),l=n.prototype.bezierPoint(e,r,s,u,h);this.curElement.context.lineTo(p,l)}return this.curElement.context.stroke(),this},n.prototype.bezierDetail=function(t){return this._setProperty("_bezierDetail",t),this},n.prototype.bezierPoint=function(t,e,n,o,r){var i=1-r;return Math.pow(i,3)*t+3*Math.pow(i,2)*r*e+3*i*Math.pow(r,2)*n+Math.pow(r,3)*o},n.prototype.bezierTangent=function(t,e,n,o,r){var i=1-r;return 3*o*Math.pow(r,2)-3*n*Math.pow(r,2)+6*n*i*r-6*e*i*r+3*e*Math.pow(i,2)-3*t*Math.pow(i,2)},n.prototype.curve=function(t,e,o,r,i,s,a,u){this.curElement.context.moveTo(t,e),this.curElement.context.beginPath();for(var c=0;c<=this._curveDetail;c++){var h=parseFloat(c/this._curveDetail),p=n.prototype.curvePoint(t,o,i,a,h),l=n.prototype.curvePoint(e,r,s,u,h);this.curElement.context.lineTo(p,l)}return this.curElement.context.stroke(),this.curElement.context.closePath(),this},n.prototype.curveDetail=function(t){return this._setProperty("_curveDetail",t),this},n.prototype.curvePoint=function(t,e,n,o,r){var i=r*r*r,s=r*r,a=-.5*i+s-.5*r,u=1.5*i-2.5*s+1,c=-1.5*i+2*s+.5*r,h=.5*i-.5*s;return t*a+e*u+n*c+o*h},n.prototype.curveTangent=function(t,e,n,o,r){var i=r*r,s=-3*i/2+2*r-.5,a=9*i/2-5*r,u=-9*i/2+4*r+.5,c=3*i/2-r;return t*s+e*a+n*u+o*c},n.prototype.curveTightness=function(){},n}({},core),shapevertex=function(t,e,n){"use strict";var o=e,n=n;return o.prototype.beginContour=function(){},o.prototype.beginShape=function(t){return this.shapeKind=t===n.POINTS||t===n.LINES||t===n.TRIANGLES||t===n.TRIANGLE_FAN||t===n.TRIANGLE_STRIP||t===n.QUADS||t===n.QUAD_STRIP?t:null,this.shapeInited=!0,this.curElement.context.beginPath(),this},o.prototype.bezierVertex=function(t,e,n,o,r,i){return this.curElement.context.bezierCurveTo(t,e,n,o,r,i),this},o.prototype.curveVertex=function(){},o.prototype.endContour=function(){},o.prototype.endShape=function(t){return t===n.CLOSE&&(this.curElement.context.closePath(),this.curElement.context.fill()),this.curElement.context.stroke(),this},o.prototype.quadraticVertex=function(t,e,n,o){return this.curElement.context.quadraticCurveTo(t,e,n,o),this},o.prototype.vertex=function(t,e){return this.shapeInited?this.curElement.context.moveTo(t,e):this.curElement.context.lineTo(t,e),this.shapeInited=!1,this},o}({},core,constants),structure=function(t,e){"use strict";var n=e;return n.prototype.exit=function(){throw"Not implemented"},n.prototype.noLoop=function(){this.settings.loop=!1},n.prototype.loop=function(){this.settings.loop=!0},n.prototype.pushStyle=function(){this.styles.push({fillStyle:this.curElement.context.fillStyle,strokeStyle:this.curElement.context.strokeStyle,lineWidth:this.curElement.context.lineWidth,lineCap:this.curElement.context.lineCap,lineJoin:this.curElement.context.lineJoin,imageMode:this.settings.imageMode,rectMode:this.settings.rectMode,ellipseMode:this.settings.ellipseMode,colorMode:this.settings.colorMode,textAlign:this.curElement.context.textAlign,textFont:this.settings.textFont,textLeading:this.settings.textLeading,textSize:this.settings.textSize,textStyle:this.settings.textStyle})},n.prototype.popStyle=function(){var t=this.styles.pop();this.curElement.context.fillStyle=t.fillStyle,this.curElement.context.strokeStyle=t.strokeStyle,this.curElement.context.lineWidth=t.lineWidth,this.curElement.context.lineCap=t.lineCap,this.curElement.context.lineJoin=t.lineJoin,this.settings.imageMode=t.imageMode,this.settings.rectMode=t.rectMode,this.settings.ellipseMode=t.ellipseMode,this.settings.colorMode=t.colorMode,this.curElement.context.textAlign=t.textAlign,this.settings.textFont=t.textFont,this.settings.textLeading=t.textLeading,this.settings.textSize=t.textSize,this.settings.textStyle=t.textStyle},n.prototype.redraw=function(){throw"Not implemented"},n.prototype.size=function(){throw"Not implemented"},n}({},core),linearalgebra=function(){return{pMultiplyMatrix:function(t,e){for(var n=[],o=t.length,r=e.length,i=t[0].length,s=0;r>s;s++){n[s]=[];for(var a=0;i>a;a++){for(var u=0,c=0;o>c;c++)u+=t[c][a]*e[s][c];n[s].push(u)}}return n}}}({}),transform=function(t,e,n){"use strict";var o=e,r=n;return o.prototype.applyMatrix=function(t,e,n,o,i,s){this.curElement.context.transform(t,e,n,o,i,s);var a=this.matrices[this.matrices.length-1];return a=r.pMultiplyMatrix(a,[t,e,n,o,i,s]),this},o.prototype.popMatrix=function(){return this.curElement.context.restore(),this.matrices.pop(),this},o.prototype.printMatrix=function(){return this.print(this.matrices[this.matrices.length-1]),this},o.prototype.pushMatrix=function(){return this.curElement.context.save(),this.matrices.push([1,0,0,1,0,0]),this},o.prototype.resetMatrix=function(){return this.curElement.context.setTransform(),this.matrices[this.matrices.length-1]=[1,0,0,1,0,0],this},o.prototype.rotate=function(t){t=this.radians(t),this.curElement.context.rotate(t);var e=this.matrices[this.matrices.length-1],n=Math.cos(t),o=Math.sin(t),r=e[0]*n+e[2]*o,i=e[1]*n+e[3]*o,s=e[0]*-o+e[2]*n,a=e[1]*-o+e[3]*n;return e[0]=r,e[1]=i,e[2]=s,e[3]=a,this},o.prototype.rotateX=function(){},o.prototype.rotateY=function(){},o.prototype.rotateZ=function(){},o.prototype.scale=function(){var t=1,e=1;1===arguments.length?t=e=arguments[0]:(t=arguments[0],e=arguments[1]),this.curElement.context.scale(t,e);var n=this.matrices[this.matrices.length-1];return n[0]*=t,n[1]*=t,n[2]*=e,n[3]*=e,this},o.prototype.shearX=function(t){this.curElement.context.transform(1,0,this.tan(t),1,0,0);var e=this.matrices[this.matrices.length-1];return e=r.pMultiplyMatrix(e,[1,0,this.tan(t),1,0,0]),this},o.prototype.shearY=function(t){this.curElement.context.transform(1,this.tan(t),0,1,0,0);var e=this.matrices[this.matrices.length-1];return e=r.pMultiplyMatrix(e,[1,this.tan(t),0,1,0,0]),this},o.prototype.translate=function(t,e){this.curElement.context.translate(t,e);var n=this.matrices[this.matrices.length-1];return n[4]+=n[0]*t+n[2]*e,n[5]+=n[1]*t+n[3]*e,this},o}({},core,linearalgebra,outputtext_area),typographyattributes=function(t,e,n){"use strict";var o=e,n=n;return o.prototype.textAlign=function(t){(t===n.LEFT||t===n.RIGHT||t===n.CENTER)&&(this.curElement.context.textAlign=t)},o.prototype.textFont=function(t){this._setProperty("_textFont",t)},o.prototype.textHeight=function(t){return this.curElement.context.measureText(t).height},o.prototype.textLeading=function(t){this._setProperty("_textLeading",t)},o.prototype.textSize=function(t){this._setProperty("_textSize",t)},o.prototype.textStyle=function(t){(t===n.NORMAL||t===n.ITALIC||t===n.BOLD)&&this._setProperty("_textStyle",t)},o.prototype.textWidth=function(t){return this.curElement.context.measureText(t).width},o}({},core,constants),typographyloading_displaying=function(t,e){"use strict";var n=e;return n.prototype.text=function(){if(this.curElement.context.font=this._textStyle+" "+this._textSize+"px "+this._textFont,3===arguments.length)this.curElement.context.fillText(arguments[0],arguments[1],arguments[2]),this.curElement.context.strokeText(arguments[0],arguments[1],arguments[2]);else if(5===arguments.length){var t=arguments[0].split(" "),e="",n=this.modeAdjust(arguments[1],arguments[2],arguments[3],arguments[4],this.rectMode);n.y+=this.textLeading;for(var o=0;on.h)break;s>n.w&&o>0?(this.curElement.context.fillText(e,n.x,n.y),this.curElement.context.strokeText(e,n.x,n.y),e=t[o]+" ",n.y+=this.textLeading):e=r}n.y<=n.h&&(this.curElement.context.fillText(e,n.x,n.y),this.curElement.context.strokeText(e,n.x,n.y))}},n}({},core),src_app=function(t,e,n){"use strict";var o=e,r=n,i=function(){(window.setup&&"function"==typeof window.setup||window.draw&&"function"==typeof window.draw)&&new o};return"complete"===document.readyState?i():window.addEventListener("load",i,!1),window.p5=o,window.PVector=r,o}({},core,mathpvector,colorcreating_reading,colorsetting,dataarray_functions,datastring_functions,dommanipulate,dompelement,environment,image,imageloading_displaying,inputfiles,inputkeyboard,inputmouse,inputtime_date,inputtouch,mathcalculation,mathrandom,mathnoise,mathtrigonometry,outputfiles,outputimage,outputtext_area,shape2d_primitives,shapeattributes,shapecurves,shapevertex,structure,transform,typographyattributes,typographyloading_displaying)}(); \ No newline at end of file diff --git a/ajax/libs/p5.js/package.json b/ajax/libs/p5.js/package.json index 3dc918f19..1f918431e 100644 --- a/ajax/libs/p5.js/package.json +++ b/ajax/libs/p5.js/package.json @@ -10,7 +10,7 @@ ] } ], - "version": "0.2.3", + "version": "0.2.4", "description": "p5.js is a JavaScript client-side library for creating graphic and interactive experiences, using canvas and HTML5, based on the core principles of Processing.", "homepage": "http://p5js.org", "keywords": [