commit
67729bc270
2 changed files with 2 additions and 2 deletions
|
@ -450,7 +450,7 @@ proc invert*(target: Image | Mask) {.raises: [].} =
|
|||
target.data[j] = (255 - target.data[j]).uint8
|
||||
|
||||
proc blur*(
|
||||
image: Image, radius: float32, outOfBounds: SomeColor = Color()
|
||||
image: Image, radius: float32, outOfBounds: SomeColor = color(0, 0, 0, 0)
|
||||
) {.raises: [PixieError].} =
|
||||
## Applies Gaussian blur to the image given a radius.
|
||||
let radius = round(radius).int
|
||||
|
|
|
@ -402,7 +402,7 @@ proc ellipticalArcTo*(
|
|||
path.at = vec2(x, y)
|
||||
|
||||
proc arc*(
|
||||
path: Path, x, y, r, a0, a1: float32, ccw: bool
|
||||
path: Path, x, y, r, a0, a1: float32, ccw: bool = false
|
||||
) {.raises: [PixieError].} =
|
||||
## Adds a circular arc to the current sub-path.
|
||||
if r == 0: # When radius is zero, do nothing.
|
||||
|
|
Loading…
Reference in a new issue