From c0ac9fd2f83b2b2f816966858c347bcdac2cc405 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Wed, 27 Jan 2021 17:16:43 -0600 Subject: [PATCH] not public, maybe becomes part of masks.nim --- src/pixie/images.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixie/images.nim b/src/pixie/images.nim index e8b0667..9cc3580 100644 --- a/src/pixie/images.nim +++ b/src/pixie/images.nim @@ -332,7 +332,7 @@ proc blur*(image: Image, radius: float32) = c.b = c.b / totalA 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. let radius = round(radius).int if radius == 0: @@ -520,7 +520,7 @@ proc shift*(image: Image, offset: Vec2) = image.fill(rgba(0, 0, 0, 0)) # Reset this for being drawn to. image.draw(copy, offset, bmOverwrite) # Draw copy into image. -proc spread*(image: Image, spread: float32) = +proc spread(image: Image, spread: float32) = ## Grows the image as a mask by spread. if spread == 0: return