2.1.28, initiation update to PXT v5.28.24 (#54)

This commit is contained in:
Amerlander
2019-12-02 05:58:26 +01:00
committed by Peli de Halleux
parent 38a964516e
commit 5c114a0c57
1261 changed files with 50692 additions and 21604 deletions

View File

@@ -4,17 +4,17 @@ The clear function for images.
Turn off all the pixels in an [Image](/reference/images/image).
### JavaScript
## JavaScript
```sig
export function clear(img: micro_bit.Image)
```
### Parameters
## Parameters
* none
### Example
## Example
The following example turns off the pixels of `img` when the A input button is pressed:
@@ -33,7 +33,7 @@ input.onButtonPressed(Button.A, () => {
})
```
### See also
## See also
[Image](/reference/images/image), [show animation](/reference/basic/show-animation), [show image](/reference/images/show-image), [scroll image](/reference/images/scroll-image), [create image](/reference/images/create-image)