rm
This commit is contained in:
parent
3c548dd7b9
commit
145d54c7e6
1 changed files with 1 additions and 3 deletions
|
@ -396,10 +396,8 @@ proc blur*(
|
||||||
|
|
||||||
for xx in max(x - radius, image.width) .. x + radius:
|
for xx in max(x - radius, image.width) .. x + radius:
|
||||||
values += outOfBounds * kernel[xx - x + radius]
|
values += outOfBounds * kernel[xx - x + radius]
|
||||||
|
|
||||||
blurX.setRgbaUnsafe(y, x, rgbx(values))
|
blurX.setRgbaUnsafe(y, x, rgbx(values))
|
||||||
# this would also work (see: `limitations of method call syntax`)
|
|
||||||
# `mixin rgbx`
|
|
||||||
# blurX.setRgbaUnsafe(y, x, values.rgbx)
|
|
||||||
|
|
||||||
# Blur in the Y direction.
|
# Blur in the Y direction.
|
||||||
for y in 0 ..< image.height:
|
for y in 0 ..< image.height:
|
||||||
|
|
Loading…
Reference in a new issue