Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pelikhan/pxt-light-image
Light animation from an image for MakeCode
https://github.com/pelikhan/pxt-light-image
Last synced: 17 days ago
JSON representation
Light animation from an image for MakeCode
- Host: GitHub
- URL: https://github.com/pelikhan/pxt-light-image
- Owner: pelikhan
- Created: 2019-06-29T12:41:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T14:03:41.000Z (over 5 years ago)
- Last Synced: 2025-01-03T03:34:01.866Z (27 days ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# light-image
Animate light strip using an image; where every column is an animation frame.
## Examples
Display a gradient in a loop.
```blocks
game.onUpdate(function () {
light.showAnimationFromImage(img`
3 3 8 a a
5 3 3 8 a
5 5 3 3 8
7 5 5 3 3
7 7 5 5 3
`, 500)
})
```## Supported targets
* for PXT/arcade
(The metadata above is needed for package search.)