There was an error while loading. Please reload this page.
1 parent 4fb7db9 commit e7f5c0fCopy full SHA for e7f5c0f
1 file changed
docs/reference/images/setRows.md
@@ -10,11 +10,9 @@ Sets rows using a buffer.
10
* **src:** the **raw data** of image.
11
12
## Example
13
-Fill the screen in dark blue.
+Fill the screen's background color in dark blue.
14
``` ts
15
const buf = Buffer.create(160 * 120);
16
- const fillImg = image.create(160, 120);
17
buf.fill(8);
18
- fillImg.setRows(0, buf);
19
- fillImg.drawImage(fillImg, 0, 0);
+ scene.backgroundImage().setRows(0, buf);
20
````
0 commit comments