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

Function glow

pattern/canvas.js:3325–3333  ·  view source on GitHub ↗
(img, intensity, radius)

Source from the content-addressed store, hash-verified

3323/*--- IMAGE FILTERS | LIGHT ------------------------------------------------------------------------*/
3324
3325function glow(img, intensity, radius) {
3326 /* Returns the image blended with a blurred version, yielding a glowing effect.
3327 * - intensity: the opacity of the blur (0.0-1.0).
3328 * - radius : the blur radius.
3329 */
3330 if (intensity === undefined) intensity = 0.5;
3331 var b = blur(img, radius);
3332 return blend(ADD, img, b, 0, 0, intensity);
3333}
3334
3335function bloom(img, intensity, radius, threshold) {
3336 /* Returns the image blended with a blurred brightpass version, yielding a "magic glow" effect.

Callers

nothing calls this directly

Calls 2

blurFunction · 0.85
blendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…