Skip to content

Commit a55dfab

Browse files
authored
Merge pull request #237 from litecanvas/luizbills-patch-1
Update README.md
2 parents bebbf5c + 6dec378 commit a55dfab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,15 @@ const japan = paint(
205205

206206
function draw() {
207207
cls(0)
208+
208209
// now the japan variable holds a image
209210
image(W/2 - japan.width/2, H/2 - japan.height/2, japan)
210211
}
211212
```
212213

213214
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.
214215

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:
216217

217218
```js
218219
litecanvas()

0 commit comments

Comments
 (0)