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

@@ -8,24 +8,21 @@ let item: Image = null;
item.scrollImage(5, 200);
```
### Parameters
## Parameters
* a [number](/reference/types/number) that means
how many LEDs to scroll at a time, from right to left or
left to right. If you use a positive number like `2`, the image
will scroll from the right side of the screen to the left.
If you use a negative number like `-2`, the image will scroll
in the other direction. If you use `5` or `-5`, the image
will scroll one **frame** at a time. (A frame is a part of the
image. It is a square with five LEDs on a side). This is
useful for **animation**.
* a [number](/types/number) that means
how many LEDs to scroll at a time from right to left.
You must use a positive number like `2`.
If you use `5`, the image will scroll one **frame** at a time.
(A frame is a part of the image. It is a square with five LEDs
on a side). This is useful for **animation**.
* a [number](/reference/types/number) that means
* a [number](/types/number) that means
how many milliseconds to wait before scrolling the amount that
``offset`` says. (1000 milliseconds is one second.) The bigger you
make this number, the slower the image will scroll.
### Example
## Example
This program scrolls an image of two arrows five LEDs at a time,
with a pause of 200 milliseconds between each time it scrolls.
@@ -47,7 +44,7 @@ basic.forever(() => {
});
```
### See also
## See also
[show image](/reference/images/show-image), [image](/reference/images/image), [create image](/reference/images/create-image), [show animation](/reference/basic/show-animation)