We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bebbf5c commit 6dec378Copy full SHA for 6dec378
README.md
@@ -205,14 +205,15 @@ const japan = paint(
205
206
function draw() {
207
cls(0)
208
+
209
// now the japan variable holds a image
210
image(W/2 - japan.width/2, H/2 - japan.height/2, japan)
211
}
212
```
213
214
It's very useful when you need to draw something the same way every time. This way, you create an image of that drawing, working as a kind of cache.
215
-You can also use the image() function to draw PNG/JPG images, but you'll need to load them first:
216
+You can also use the `image()` function to draw PNG/JPG images, but you'll need to load them first:
217
218
```js
219
litecanvas()
0 commit comments