Skip to content

Commit

Permalink
Note that canvas.tobwstring may mutate the image
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Nov 20, 2024
1 parent d5147f6 commit eadb04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Runtime Environment/Canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ print("data:image/png;base64,"..base64.encode(c:topng()))

---
### `canvas.tobwstring`
Convert a canvas to a black and white unicode string.
Convert a canvas to a black and white unicode string. This requires the height of the canvas to be an even number; if it is not, a black line will be added to the bottom of the canvas.
#### Parameters
1. The canvas instance.
2. The color to be "white." Any other color will be "black."
Expand Down

0 comments on commit eadb04b

Please sign in to comment.