text()
Displays text on canvas
Last updated
Displays text on canvas
Last updated
The text function draws a text on the canvas at the specified location. The object drawn on the canvas is a shape that has an internal region which can be colored with fill()
and a boundary which can be colored by stroke()
.
Input | Description |
---|---|
Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!
We'd love to hear your Feedback/Comments here.
sentence
The content of the text. It can be any type of data, though we usually use strings.
x
the x-coordinate of the text box
y
the y-coordinate of the text box