MCPcopy Create free account
hub / github.com/corbanbrook/dsp.js / imageModeCenter

Function imageModeCenter

examples/js/processing.js:1097–1104  ·  view source on GitHub ↗
(x, y, w, h, whAreSizes)

Source from the content-addressed store, hash-verified

1095 };
1096
1097 var imageModeCenter = function imageModeCenter(x, y, w, h, whAreSizes) {
1098 return {
1099 x: x - w / 2,
1100 y: y - h / 2,
1101 w: w,
1102 h: h
1103 };
1104 };
1105
1106 var createProgramObject = function(curContext, vetexShaderSource, fragmentShaderSource) {
1107 var vertexShaderObject = curContext.createShader(curContext.VERTEX_SHADER);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected