MCPcopy Index your code
hub / github.com/clips/pattern / transparent

Function transparent

pattern/canvas.js:3198–3204  ·  view source on GitHub ↗
(img, alpha)

Source from the content-addressed store, hash-verified

3196}
3197
3198function transparent(img, alpha) {
3199 /* Returns a transparent version of the image.
3200 */
3201 return render(function(canvas) {
3202 image(img, {alpha: alpha});
3203 }, img.width, img.height);
3204}
3205
3206function mask(img1, img2, dx, dy, alpha) {
3207 /* Applies the second image as an alpha mask to the first image.

Callers

nothing calls this directly

Calls 2

imageFunction · 0.85
renderFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…