Skip to content

krzema12/hypergravity

Repository files navigation

Hypergravity - gravity simulation in Hyper terminal

Animated demo

npm

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

  1. Open ~/.hyper.js and add hypergravity in the proper place:
  plugins: [
    // some other plugins
    'hypergravity'
  ],
  1. Run Hyper and press Command + G (or Control + G on Linux and Windows) to toggle gravity mode!

How to run it for development

  1. Clone the repo to ~/.hyper_plugins/local/hypergravity
  2. Go to hypergravity folder.
  3. Run yarn to install the dependencies.
  4. Add this to your .hyper.js:
  localPlugins: [
    // maybe some other local plugins
    'hypergravity'
  ],
  1. At the beginning and after each change in source files, run yarn build to (re)build index.js which is in fact loaded by Hyper.

About

Gravity simulation in Hyper terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published