Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krzema12/hypergravity
Gravity simulation in Hyper terminal
https://github.com/krzema12/hypergravity
extension gravity hyper physics plugin
Last synced: 3 months ago
JSON representation
Gravity simulation in Hyper terminal
- Host: GitHub
- URL: https://github.com/krzema12/hypergravity
- Owner: krzema12
- License: mit
- Created: 2017-12-31T14:52:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T20:15:18.000Z (about 2 years ago)
- Last Synced: 2024-10-12T11:13:53.093Z (4 months ago)
- Topics: extension, gravity, hyper, physics, plugin
- Language: JavaScript
- Homepage:
- Size: 2.54 MB
- Stars: 23
- Watchers: 1
- Forks: 5
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hypergravity - gravity simulation in Hyper terminal
![Animated demo](https://user-images.githubusercontent.com/3110813/35337934-d11d8afc-011c-11e8-9131-6c0bf23ec669.gif)
[![npm](https://img.shields.io/npm/dw/hypergravity.svg)](https://www.npmjs.com/package/hypergravity)
## 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:
```js
plugins: [
// some other plugins
'hypergravity'
],
```
2. 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`:
```js
localPlugins: [
// maybe some other local plugins
'hypergravity'
],
```
5. 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.