Skip to content

Commit e7f5c0f

Browse files
Update setRows.md
1 parent 4fb7db9 commit e7f5c0f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

docs/reference/images/setRows.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ Sets rows using a buffer.
1010
* **src:** the **raw data** of image.
1111

1212
## Example
13-
Fill the screen in dark blue.
13+
Fill the screen's background color in dark blue.
1414
``` ts
1515
const buf = Buffer.create(160 * 120);
16-
const fillImg = image.create(160, 120);
1716
buf.fill(8);
18-
fillImg.setRows(0, buf);
19-
fillImg.drawImage(fillImg, 0, 0);
17+
scene.backgroundImage().setRows(0, buf);
2018
````

0 commit comments

Comments
 (0)