MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / _plane

Function _plane

libraries/p5.js:34372–34385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34370
34371 if(!this._renderer.geometryInHash(gId)){
34372 var _plane = function(){
34373 var u,v,p;
34374 for (var i = 0; i <= this.detailY; i++){
34375 v = i / this.detailY;
34376 for (var j = 0; j <= this.detailX; j++){
34377 u = j / this.detailX;
34378 p = new p5.Vector(width * u - width/2,
34379 height * v - height/2,
34380 0);
34381 this.vertices.push(p);
34382 this.uvs.push([u,v]);
34383 }
34384 }
34385 };
34386 var planeGeom =
34387 new p5.Geometry(detailX, detailY, _plane);
34388 planeGeom

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected