< Previous | Contents | Next >

Example

This example blends one image with another using a third image as a map.


function Process(req)

local img_bg = InBG:GetValue(req) local img_fg = InFG:GetValue(req) local map = InMap:GetValue(req)


img = img_bg:BlendOf(img_fg, map)


OutImage:Set(req, img)

end