This commit is contained in:
Ryan Oldenburg 2021-01-28 20:25:24 -06:00
parent 35ad210ec5
commit cb14a09367

View file

@ -332,7 +332,7 @@ proc blur*(image: Image, radius: float32) =
c.b = c.b / totalA c.b = c.b / totalA
image.setRgbaUnsafe(x, y, c.rgba) image.setRgbaUnsafe(x, y, c.rgba)
proc blurAlpha(image: Image, radius: float32) = proc blurAlpha*(image: Image, radius: float32) =
## Applies Gaussian blur to the image given a radius. ## Applies Gaussian blur to the image given a radius.
let radius = round(radius).int let radius = round(radius).int
if radius == 0: if radius == 0: