pxt-microbit Accessibility PR (#529)

* Accessibility changes
This commit is contained in:
Sam El-Husseini
2017-09-07 13:42:08 -07:00
committed by GitHub
parent 3f87576a50
commit e3975e65e5
357 changed files with 1641 additions and 3540 deletions

View File

@ -4,30 +4,30 @@ The pixel function.
Get the state of a pixel in an [Image](/reference/images/image).
### JavaScript
## JavaScript
```sig
export function pixel(_this: micro_bit.Image, x: number, y: number) : boolean
```
### Parameters
## Parameters
* x - [Number](/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/reference/images/image)
* y - [Number](/types/number); the *y coordinate* or vertical position of a pixel in an [image](/reference/images/image)
### x, y coordinates?
## x, y coordinates?
To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen).
### Returns
## Returns
* [Boolean](/blocks/logic/boolean) - `true` for on and `false` for off
### Example
## Example
This example gets the state of pixel `0, 0` in the `img` variable:
### ~hide
## ~hide
```blocks
let img = images.createImage(`
@ -39,13 +39,13 @@ let img = images.createImage(`
`)
```
### ~
## ~
```typescript-ignore
let state = img.pixel(0, 0)
```
### See also
## See also
[set pixel](/reference/images/set-pixel), [show image](/reference/images/show-image), [image](/reference/images/image), [create image](/reference/images/create-image), [scroll image](/reference/images/scroll-image)