This commit is contained in:
Peli de Halleux 2018-03-08 13:11:18 -08:00
commit 1e0c5f2498

View File

@ -11,14 +11,11 @@ item.scrollImage(5, 200);
## Parameters ## Parameters
* a [number](/types/number) that means * a [number](/types/number) that means
how many LEDs to scroll at a time, from right to left or how many LEDs to scroll at a time from right to left.
left to right. If you use a positive number like `2`, the image You must use a positive number like `2`.
will scroll from the right side of the screen to the left. If you use `5`, the image will scroll one **frame** at a time.
If you use a negative number like `-2`, the image will scroll (A frame is a part of the image. It is a square with five LEDs
in the other direction. If you use `5` or `-5`, the image on a side). This is useful for **animation**.
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 * a [number](/types/number) that means
how many milliseconds to wait before scrolling the amount that how many milliseconds to wait before scrolling the amount that