A cross platform high-performance graphics system.
Spritejs is a cross platform high-performance graphics system, which can render graphics on web, node, desktop applications and mini-programs.
SpritejsNext is the new version of spritejs. It is renderer agnostic enabling the same api to render in multiple contexts: webgl2, webgl, and canvas2d.
Manipulate the sprites in canvas as you do with the DOM elements.
SpriteJS - spritejs.org
In browser:
With Node.js:
npm install spritejs --save
import * as spritejs from 'spritejs';
SpriteJSNext can render 3D elements through 3D extension library.
Or from NPM
import {Scene} from 'spritejs'; import {Cube, shaders} from 'sprite-extend-3d';
Compatible with d3.js.
A visulization library based on spritejs.
| Project | Description | | ------------------------------- | ----------------------------------- | | sprite-vue| SpriteJS for Vue.js. | | sprite-react| Rendering spritejs elements with React. | | q-charts | A visulization library based on spritejs | | cat-charts-vue| A visulization library based on spritejs , qcharts and Vue. |
SpritejsNext provides several kinds of basic sprite elements, which can be operated on the layer like DOM elements.
Build with NPM
npm run build
Build Doc
npm run build-doc
npm test
Compatible for most modern browsers.
You should import babel-polyfill for early browers(i.e. iOS 8).
Thanks goes to these wonderful people (emoji key):
| | | | | | | |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
betseyliu
π» π |
Shero0311
π |
ζ马
π π»|
ζθΊ
π» π |
θ‘ζ―ζ°
π» π |
Shaofei Cheng
π» π |
ζε€ͺι³
π
|
ε
¬ε
π» |
justemit
π» π π |
Welefen Lee
π» |
YUPENG12138
π|
xinde
π|
ggvswild
π|
liulinboyi
π»|
|
Lulzx
π» |
asidar
π» |
alphatr
π» |
W-Qing
π |
svg-path-contours Approximates an SVG path into a discrete list of 2D contours (polylines).
extrude-polyline Extrudes a 2D polyline with a given line thickness and the desired join/cap types.
triangulate-contours Triangulates a series of contours using Tess2.js.
OGL OGL is a small, effective WebGL library aimed at developers who like minimal layers of abstraction, and are comfortable creating their own shaders.