MCPcopy Create free account
hub / github.com/microsoft/SandDance / populateAlphaChannel

Function populateAlphaChannel

docs/app/js/sanddance-app.js:105574–105576  ·  view source on GitHub ↗
(alphaChannel, imageData)

Source from the content-addressed store, hash-verified

105572 return newChars;
105573}
105574function populateAlphaChannel(alphaChannel, imageData) {
105575 for(var i = 0; i < alphaChannel.length; i++)imageData.data[4 * i + 3] = alphaChannel[i];
105576}
105577function setTextStyle(ctx, fontFamily, fontSize, fontWeight) {
105578 ctx.font = "".concat(fontWeight, " ").concat(fontSize, "px ").concat(fontFamily);
105579 ctx.fillStyle = "#000";

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected