Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saber2pr/saber-canvas-animation
use Observable mod! pipe? just so easy!
https://github.com/saber2pr/saber-canvas-animation
animation canvas observable
Last synced: 14 days ago
JSON representation
use Observable mod! pipe? just so easy!
- Host: GitHub
- URL: https://github.com/saber2pr/saber-canvas-animation
- Owner: Saber2pr
- Created: 2019-01-04T07:17:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T07:32:52.000Z (about 6 years ago)
- Last Synced: 2024-11-09T00:34:38.631Z (2 months ago)
- Topics: animation, canvas, observable
- Language: JavaScript
- Homepage: https://saber2pr.github.io/saber-canvas-animation/
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# saber-canvas-animation
> use Observable mod!
> pipe?
> just so easy!
```ts
schedule(() => {
if (observer0.pull().x > 400) {
observer0.pipe(node => action(node)(-350, 0))
observer1.pipe(node => action(node)(0, -350))
observer2.pipe(node => action(node)(0, 350))
observer3.pipe(node => action(node)(350, 0))
} else {
observer0.pipe(node => action(node)(2, 0))
observer1.pipe(node => action(node)(0, 2))
observer2.pipe(node => action(node)(0, -2))
observer3.pipe(node => action(node)(-2, 0))
}
}, 2)
```> > [click here to view](https://saber2pr.github.io/saber-canvas-animation/)