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

Function verifyChannel

examples/js/processing.js:4376–4382  ·  view source on GitHub ↗
(aColor)

Source from the content-addressed store, hash-verified

4374 };
4375
4376 var verifyChannel = function verifyChannel(aColor) {
4377 if (aColor.constructor === Array) {
4378 return aColor;
4379 } else {
4380 return p.color(aColor);
4381 }
4382 };
4383
4384 p.red = function(aColor) {
4385 return ((aColor & p.RED_MASK) >>> 16) / 255 * colorModeX;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected