Skip to content
[~]drawing-functions.md: updated text() authored by gibbonjoyeux's avatar gibbonjoyeux
......@@ -267,6 +267,9 @@ Writes the passed `string` on the active layer at [`x`, `y`] coordinates. A
paragraph width can be passed for wrap modes. In this way, the text will wrap to
avoid paragraph width overflow.
When no wrap is set, you can easily print block formatted strings with carriage
returns and spaces. It can be useful to print drawn ascii art put into a strins.
### Parameters:
- `string` String: Text to be drawn
- `x` Number: x coordinate of the text
......@@ -326,7 +329,7 @@ trimmed once it got out of the active layer.
- `wrap_mode` Mode: Wrapping mode of `text()`
### Modes:
- `TEXT_TRIM` Default value, text is trimmed out of the active layer.
- `TEXT_BLOCK` Default value, text is trimmed out of the active layer.
- `TEXT_WRAP_HARD` Wrap text. Split words if necessary.
- `TEXT_WRAP` Wrap text without splitting words (exept if the word is bigger
than the text / paragraph width).
......
......