https://github.com/jaredly/rsnpaint
experimenting with animations + reasonml
https://github.com/jaredly/rsnpaint
Last synced: about 1 year ago
JSON representation
experimenting with animations + reasonml
- Host: GitHub
- URL: https://github.com/jaredly/rsnpaint
- Owner: jaredly
- Created: 2017-05-07T04:51:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-07T05:14:46.000Z (about 9 years ago)
- Last Synced: 2025-01-10T06:52:08.217Z (over 1 year ago)
- Language: OCaml
- Homepage:
- Size: 2.81 MB
- Stars: 15
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Playing with animations using canvas + Reasonml
How to get running
```bash
git clone https://github.com/jaredly/rsnpaint
cd rsnpaint
yarn
yarn start # this is the bucklescript (reason -> js) process
# open another tab
yarn run build # this is the webpack (js files -> finished bundle) process
```
Then open `index.html` in your favorite browser!
## Experiment 1
Basic stuff, let's have rectangle that bounces around the screen and changes
colors.

## Experiment 2
Let's implement flocking!
Algorithm based on [boids](http://www.red3d.com/cwr/boids/) using [this great
blog post](http://harry.me/blog/2011/02/17/neat-algorithms-flocking/) for some
tips.
