kernel Multiply < namespace: "com.27Bobs"; vendor: "Todd Yard"; version: 1; description: "Multiplies the background color and source color."; > { parameter float percent < minValue: 0.0; maxValue: 1.0; defaultValue: 1.0; description: "The amount of blend to apply."; >; input image4 source; input image4 background; output pixel4 result; void evaluatePixel() { float2 coord = outCoord(); pixel4 px = sampleNearest(source, coord); pixel4 bg = sampleNearest(background, coord); pixel4 fullBlend = px*bg; result = mix(px, fullBlend, percent); } }