Update scroll-image.md (#701)
Just change the documentation here, cause the underlying API doesn't work correctly yet 2cff906f01/source/drivers/MicroBitDisplay.cpp (L931)
So negative values are not working for now.
This commit is contained in:
parent
c9963f7a56
commit
4a8d9ee9cd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user