Skip to content

ccKep/shatter.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shatter.js

Shatter.js provides simple image shattering by dividing a given image with a Voronoi diagram.

Install

Get dependencies: $ bower install && npm install

This will install d3.js (required for Voronoi generation) and smash (to build custom d3.js with Voronoi specific functions only).

Build

Build with grunt. $ grunt build

This will create three files in ./build:

  • d3voronoi.js: d3 built specifically for voronoi generation
  • shatter.js: Includes Shatter and d3voronoi.js
  • shatter.min.js: Minified shatter.js.

Documentation

Workin on it.

Example

Still working on this. See phaser-shatter.html in ./examples

License

Packages

No packages published

Languages

  • TypeScript 70.0%
  • JavaScript 30.0%