hypergravity
hypergravity copied to clipboard
Gravity simulation in Hyper terminal
Hypergravity - gravity simulation in Hyper terminal

Warning - not compatible with Hyper 2.0+
It's because Hyper now uses a canvas to draw the whole terminal content, and there's no access to invidual DOM elements like text line, words, etc. Tracked in issue #20.
How to install and use it
- Open
~/.hyper.jsand addhypergravityin the proper place:
plugins: [
// some other plugins
'hypergravity'
],
- Run Hyper and press
Command + G(orControl + Gon Linux and Windows) to toggle gravity mode!
How to run it for development
- Clone the repo to
~/.hyper_plugins/local/hypergravity - Go to
hypergravityfolder. - Run
yarnto install the dependencies. - Add this to your
.hyper.js:
localPlugins: [
// maybe some other local plugins
'hypergravity'
],
- At the beginning and after each change in source files, run
yarn buildto (re)buildindex.jswhich is in fact loaded by Hyper.