webgl-decorative-backgrounds

1.0.6 • Public • Published

WebGL Decorative Backgrounds

Sample decorative backgrounds using WebGL

Build Status npm node

Maintainability David David

Demos

WebGL Decorative Backgrounds

Based on the amazing work from the people at Codrops, this is a modern, lightweight extension of previously crafted WebGL Decorative Backgrounds.

Installation

To download and install the entire repo, including all examples, build scripts, etc., clone the repo and install the dependencies:

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:

yarn add @nielse63/cubes

To see all the scoped packages available for installation, visit the packages/ directory.

Usage

Assuming you've installed a single, scoped package (i.e. @nielse63/cubes), simply import the main script like you would any other ESModule:

import cubes from '@nielse63/cubes';
 
const canvas = document.querySelector('canvas');
cubes(canvas);

Credit

Readme

Keywords

none

Package Sidebar

Install

npm i webgl-decorative-backgrounds

Weekly Downloads

15

Version

1.0.6

License

MIT

Unpacked Size

94.9 MB

Total Files

3736

Last publish

Collaborators

  • nielse63