faster
This commit is contained in:
parent
0ad674fc29
commit
f8e8de9c5f
1 changed files with 1 additions and 1 deletions
|
@ -853,7 +853,7 @@ proc spread(image: Image, spread: float32) {.raises: [PixieError].} =
|
||||||
maxValue = value
|
maxValue = value
|
||||||
if maxValue == 255:
|
if maxValue == 255:
|
||||||
break
|
break
|
||||||
spreadX.unsafe[y, x] = rgbx(0, 0, 0, maxValue)
|
spreadX.unsafe[y, x].a = maxValue
|
||||||
|
|
||||||
# Spread in the Y direction and modify mask.
|
# Spread in the Y direction and modify mask.
|
||||||
for y in 0 ..< image.height:
|
for y in 0 ..< image.height:
|
||||||
|
|
Loading…
Reference in a new issue