Add more snippet types for better detection

This commit is contained in:
Thomas Denney
2016-08-09 16:52:24 +01:00
parent 9fd2a3a3e6
commit 9ebd9d4f04
12 changed files with 29 additions and 31 deletions

View File

@ -6,7 +6,7 @@ Get the state of a pixel in an [Image](/reference/images/image).
### JavaScript
```
```sig
export function pixel(_this: micro_bit.Image, x: number, y: number) : boolean
```
@ -29,7 +29,7 @@ This example gets the state of pixel `0, 0` in the `img` variable:
### ~hide
```
```blocks
let img = images.createImage(`
. . # . . . . . . .
. # . # . . . # . .
@ -41,7 +41,7 @@ let img = images.createImage(`
### ~
```
```blocks
let state = img.pixel(0, 0)
```