Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GniLudio authored Apr 10, 2024
1 parent 99d9b42 commit 1934b1b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,18 @@ The project can be found on [https://gniludio.github.io/thependel/](https://gnil
| `1-9` | Toggles the settings. |
| `Esc` | Closes the settings. |
| `Spacebar` | Pause / Unpause |

## Future Ideas

### Fading Out
It would be very appealing if each pendulum has an additional fade duration after which the drawn line disappears. I tried to make that work through several ways, but found no satisfactory solution.


1. clear canvas and redraw everything which didn't fade out
* very slow
2. clear canvas and redraw everything through `bezierCurve` in big steps (e.g. 45°)
* a lot faster than 1. (still very unefficient)
* redrawing doesn't result in the same image
3. [fabric.js](http://fabricjs.com/)
* tried with Polylines and with grouped Lines
* both too slow

0 comments on commit 1934b1b

Please sign in to comment.