Merge pull request #276 from guzba/master

binding fixes
This commit is contained in:
treeform 2021-09-01 22:19:42 -07:00 committed by GitHub
commit 67729bc270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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.