Skip to content

Commit 193fe81

Browse files
authored
picographics: update text docs
1 parent 17d180d commit 193fe81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/pico_graphics/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,14 @@ PicoGraphics::circle(const Point &p, int32_t radius)
304304
### Text
305305

306306
```c++
307-
void PicoGraphics::text(const std::string &t, const Point &p, int32_t wrap, uint8_t scale);
307+
void PicoGraphics::text(const std::string_view &t, const Point &p, int32_t wrap, float s, float a, uint8_t letter_spacing, bool fixed_width);
308308
```
309309
310310
`text` allows you to draw a string at `Point p`, with a maximum line-width of `int32_t wrap`.
311311
312312
The 6x6 and 6x8 pixel font characters are encoded in `font6_data.hpp` and `font8_data.hpp` along with their character widths so that text can be drawn variable-width.
313313
314-
You can scale text with `uint8_t scale` for 12x12, 18x18, etc character sizes.
314+
You can scale text with `float s` for 12x12, 18x18, etc character sizes. You can also rotate text with `float a` (in degrees).
315315
316316
### Change Font
317317

0 commit comments

Comments
 (0)