Add local p5.min.js
This commit is contained in:
27 files changed
+212
-840
No files matched your search
Vendored
+1
@@ -0,0 +1 @@
|
||||
var p5=function(){"use strict";const t=Math.PI,r="2.3.3",i="p2d",n="webgl",s="webgl2",a="webgpu",o="default",h="simple",u="full",l="crosshair",c="pointer",p="move",d="text",f="wait",m=t/2,g=t,y=t/4,x=2*t,v=2*t,b=t/180,_=180/t,w="corner",C="corners",E="radius",A="right",D="left",S="center",T="top",F="bottom",k="alphabetic",M=0,I=1,B=4,L=6,O=5,P="quads",N="quad_strip",R=7,V=8,U="close",z="open",j="chord",G="pie",$="square",H="butt",q="round",W="bevel",X="miter",Y="auto",Z="source-over",K="destination-out",J="lighter",Q="darken",ee="lighten",te="difference",re="subtract",ie="exclusion",ne="multiply",se="screen",ae="copy",oe="overlay",he="hard-light",ue="soft-light",le="color-dodge",ce="color-burn",pe="threshold",de="gray",fe="opaque",me="invert",ge="posterize",ye="dilate",xe="erode",ve="blur",be="normal",_e="WORD",we="linear",Ce="fill",Ee="texture",Ae="image",De="linear_mipmap",Se="nearest",Te="repeat",Fe="clamp",ke="mirror",Me="flat",Ie="smooth",Be="#000000",Le="#FFFFFF",Oe="grid",Pe="axes",Ne="contain",Re="cover",Ve="unsigned-byte",Ue="unsigned-int",ze="float",je="half-float",Ge=Symbol("include"),$e=Symbol("exclude"),He=Symbol("join");var qe=Object.freeze({__proto__:null,ADD:J,ALT:"Alt",ARROW:o,AUTO:Y,AXES:Pe,BACKSPACE:"Backspace",BASELINE:k,BEVEL:W,BEZIER:"bezier",BLEND:Z,BLUR:ve,BOLD:"bold",BOLDITALIC:"bold italic",BOTTOM:F,BURN:ce,CENTER:S,CHAR:"CHAR",CHORD:j,CLAMP:Fe,CLOSE:U,CONTAIN:Ne,CONTROL:"Control",CORNER:w,CORNERS:C,COVER:Re,CROSS:l,CURVE:"curve",DARKEST:Q,DEG_TO_RAD:b,DELETE:"Delete",DIFFERENCE:te,DILATE:ye,DODGE:le,DOWN_ARROW:"ArrowDown",EMPTY_PATH:7,ENTER:"Enter",ERODE:xe,ESCAPE:"Escape",EXCLUDE:$e,EXCLUSION:ie,FALLBACK:"fallback",FILL:Ce,FLAT:Me,FLOAT:ze,FULL:u,GRAY:de,GRID:Oe,HALF_FLOAT:je,HALF_PI:m,HAND:c,HARD_LIGHT:he,IMAGE:Ae,IMMEDIATE:"immediate",INCLUDE:Ge,INVERT:me,ITALIC:"italic",JOIN:He,LABEL:"label",LANDSCAPE:"landscape",LEFT:D,LEFT_ARROW:"ArrowLeft",LIGHTEST:ee,LINEAR:we,LINEAR_MIPMAP:De,LINES:I,LINE_LOOP:2,LINE_STRIP:3,MIRROR:ke,MITER:X,MOVE:p,MULTIPLY:ne,NEAREST:Se,NORMAL:be,OPAQUE:fe,OPEN:z,OPTION:"Alt",OVERLAY:oe,P2D:i,P2DP3:"p2d-p3",PATH:8,PI:g,PIE:G,POINTS:M,PORTRAIT:"portrait",POSTERIZE:ge,PROJECT:$,QUADRATIC:"quadratic",QUADS:P,QUAD_STRIP:N,QUARTER_PI:y,RADIUS:E,RAD_TO_DEG:_,REMOVE:K,REPEAT:Te,REPLACE:ae,RETURN:"Enter",RIGHT:A,RIGHT_ARROW:"ArrowRight",ROUND:q,SCREEN:se,SHIFT:"Shift",SIMPLE:h,SMOOTH:Ie,SOFT_LIGHT:ue,SQUARE:H,STROKE:"stroke",SUBTRACT:re,TAB:"Tab",TAU:x,TESS:"tess",TEXT:d,TEXTURE:Ee,THRESHOLD:pe,TOP:T,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,TWO_PI:v,UNSIGNED_BYTE:Ve,UNSIGNED_INT:Ue,UP_ARROW:"ArrowUp",VERSION:r,WAIT:f,WEBGL:n,WEBGL2:s,WEBGPU:a,WORD:_e,_CTX_MIDDLE:"middle",_DEFAULT_FILL:Le,_DEFAULT_LEADMULT:1.25,_DEFAULT_STROKE:Be,_DEFAULT_TEXT_FILL:"#000000"});function We(e,t){t.applyMatrix=function(...e){let t=e[0]instanceof Object.getPrototypeOf(Uint8Array);return Array.isArray(e[0])||t?this._renderer.applyMatrix(...e[0]):this._renderer.applyMatrix(...e),this},t.resetMatrix=function(){return this._renderer.resetMatrix(),this},t.rotate=function(e,t){return this._renderer.rotate(this._toRadians(e),t)},t.rotateX=function(e){return this._assert3d("rotateX"),this._renderer.rotateX(this._toRadians(e))},t.rotateY=function(e){return this._assert3d("rotateY"),this._renderer.rotateY(this._toRadians(e))},t.rotateZ=function(e){return this._assert3d("rotateZ"),this._renderer.rotateZ(this._toRadians(e))},t.scale=function(t,r,i){if(t instanceof e.Vector){const e=t;t=e.x,r=e.y,i=e.z}else if(Array.isArray(t)){const e=t;t=e[0],r=e[1],i=e[2]||1}return isNaN(r)?r=i=t:isNaN(i)&&(i=1),this._renderer.scale(t,r,i)},t.shearX=function(e){const t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},t.shearY=function(e){const t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},t.translate=function(e,t,r){return this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t)},t.push=function(){this._renderer.push()},t.pop=function(){this._renderer.pop()}}function Xe(e,t){t.noLoop=function(){this._loop=!1},t.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},t.isLooping=function(){return this._loop},t.redraw=async function(e){if(this._inUserDraw||!this._setupDone)return;let t=parseInt(e);(isNaN(t)||t<1)&&(t=1);const r=this._isGlobal?window:this;if("function"==typeof r.draw){void 0===r.setup&&r.scale(r._pixelDensity,r._pixelDensity);for(let e=0;e<t;e++){r.resetMatrix(),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._updateAccsOutput(),this._renderer.isP3D&&this._renderer._update(),this.frameCount=r.frameCount+1,await this._runLifecycleHook("predraw"),this._inUserDraw=!0;try{await r.draw()}finally{this._inUserDraw=!1}await this._runLifecycleHook("postdraw")}await(this._renderer.finishDraw?.())}}}function Ye(e,t,r){const n=[o,l,c,p,d,f],s="undefined"!=typeof window&&"undefined"!=typeof document;t._frameRate=0,t._lastFrameTime=globalThis.performance.now(),t._targetFraLine truncated
|
||||
Reference in new issue
Block a user