> Sample decorative backgrounds using WebGL
npm install webgl-decorative-backgrounds> Sample decorative backgrounds using WebGL


!node

!David
!David
* Demo Homepage
* The Brain
* Cubes
* Network
* Sphere
* Waves
Based on the amazing work from the people at Codrops, this is a modern, lightweight extension of previously crafted WebGL Decorative Backgrounds.
To download and install the entire repo, including all examples, build scripts, etc., clone the repo and install the dependencies:
``bash`
git clone https://github.com/nielse63/WebGL-Decorative-Backgrounds.git
cd WebGL-Decorative-Backgrounds
yarn
If you only want to use a single background in an existing project, you can install the individual module and import it like you would any other script:
`bash`
yarn add @nielse63/cubes
To see all the scoped packages available for installation, visit the packages/ directory.
Assuming you've installed a single, scoped package (i.e. @nielse63/cubes), simply import the main script like you would any other ESModule:
`js
import cubes from '@nielse63/cubes';
const canvas = document.querySelector('canvas');
cubes(canvas);
``