< Previous | Contents | Next >

BLUR_RedScale, BLUR_GreenScale, BLUR_BlueScale, BLUR_AlphaScale

The blur scale tags are multipliers for the results of the glow applied with BLUR_Normalize. These match the glow tool’s "Color Scale" options.

Example


function Process(req)

local img = InImage:GetValue(req)

local blur_strength = InBlur:GetValue(req).Value local result = Image({IMG_Like = img})


img:Blur(result, {

BLUR_Type = "Gaussian", BLUR_Red = true, BLUR_Green = true, BLUR_Blue = true, BLUR_Alpha = false,

BLUR_XSize = blur_strength/img.OriginalWidth, BLUR_YSize = blur_strength/img.OriginalWidth,

})


OutImage:Set(req, result)

end