Merge pull request #546 from simonkrauter/patch-1

Fix documentation in contexts.nim
This commit is contained in:
Andre von Houck 2023-10-04 17:16:20 -07:00 committed by GitHub
commit 18db66aeb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -481,8 +481,8 @@ proc fillText*(ctx: Context, text: string, at: Vec2) {.raises: [PixieError].} =
proc fillText*( proc fillText*(
ctx: Context, text: string, x, y: float32 ctx: Context, text: string, x, y: float32
) {.inline, raises: [PixieError].} = ) {.inline, raises: [PixieError].} =
## Draws the outlines of the characters of a text string at the specified ## Draws a text string at the specified coordinates, filling the string's
## coordinates. ## characters with the current fillStyle
ctx.fillText(text, vec2(x, y)) ctx.fillText(text, vec2(x, y))
proc strokeText*(ctx: Context, text: string, at: Vec2) {.raises: [PixieError].} = proc strokeText*(ctx: Context, text: string, at: Vec2) {.raises: [PixieError].} =