Skip to content

Commit ddf3ba6

Browse files
Update monochrome.md
1 parent 1ef930c commit ddf3ba6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/reference/images/monochrome.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ a boolean which returns true if the image is black and white. The boolean expres
88
Create a custom image detecting if the image has black and white, it logs into the console's serial output. Otherwise it throws an error.
99
``` ts
1010
const customImage = image.create(160, 120);
11+
customImage.setPixel(5, 5, 1);
12+
customImage.setPixel(15, 15, 15);
1113
if (customImage.isMono) {
12-
console.log("Your Image Is Valid")
14+
console.log("Your Image Is Valid");
1315
} else {
14-
throw "Error: This Image is Invalid"
16+
throw "Error: This Image is Invalid";
1517
}
1618
```

0 commit comments

Comments
 (0)