1.0.5 • Published 8 years ago
@nielse63/webgl-sphere
Licence
MIT
Version
1.0.5
Deps
3
Size
3 kB
Vulns
1
Weekly
0
@nielse63/webgl-sphere
A sample WebGL decorative background using Three.js
Given a <canvas> NodeElement as the only parameter, the function will render an animation using Three.js
Installation
Using Yarn
yarn add --save @nielse63/webgl-sphere
or NPM
npm install --save @nielse63/webgl-sphere
Usage
import sphere from '@nielse63/webgl-sphere';
const canvas = document.querySelector('canvas');
sphere(canvas);