Fast blurring for Roblox EditableImage.
Please consider supporting my work.
Blur Radius 1
Blur Radius 5
Blur Radius 15
Via wally:
[dependencies]
EditableImageBlur = "boatbomber/editableimageblur@0.3.1"
Package returns a single function.
function EditableImageBlur(blurConfig: {
image: EditableImage, -- The EditableImage to use
pixelData: { number }?, -- Pixel data array, for applying blur to an image data that isn't yet written into the EditableImage
blurRadius: number?, -- Radius of the gaussian blur
skipAlpha: boolean?, -- Whether to skip blurring the alpha channel
downscaleFactor: number?, -- Downscaling can help make it run faster for minimal loss in quality (ddownscaling won't apply if pixelData is passed)
})
Simple usage example:
local EditableImageBlur = require(Packages.EditableImageBlur)
EditableImageBlur({
image = EditableImage,
blurRadius = 3,
})