From f8e8de9c5f1e8442af6ae3a637364f8f87718cb3 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Mon, 25 Jul 2022 23:50:32 -0500 Subject: [PATCH] faster --- src/pixie/images.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixie/images.nim b/src/pixie/images.nim index 6fc99f4..ba48e7a 100644 --- a/src/pixie/images.nim +++ b/src/pixie/images.nim @@ -853,7 +853,7 @@ proc spread(image: Image, spread: float32) {.raises: [PixieError].} = maxValue = value if maxValue == 255: break - spreadX.unsafe[y, x] = rgbx(0, 0, 0, maxValue) + spreadX.unsafe[y, x].a = maxValue # Spread in the Y direction and modify mask. for y in 0 ..< image.height: