ncage-cube
v0.1.692
Published
mess with your coworkers
Downloads
2
Readme
ncage-cube
mess with your coworkers
🚀
Install with yarn install ncage-cube
or whatever package manager you are using.
The cube will appear on the screen whenever it is rendered. I would suggest adding at the App level, so that it is always rendered.
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.tsx';
import './index.css';
import { NCage } from 'ncage-cube';
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
<NCage />
</React.StrictMode>
);
The default settings are quite subtle, which makes it take a long time to appear.
If you would like to play with the parameters and see the results, visit this website
It's typed so you can view the parameters that way.
The Delta in the parameter names, means how much will that thing change over time. Increases makes it happen more rapidly.
alwaysVisible does exactly what it says on the tin.
Source code here