knit.js

0.0.3 • Public • Published

knit.js

Knit is a simple JavaScript Verlet physics engine for fabric and cloth effects

Live demo

http://mattdesl.github.io/knit.js/dist/index.html

Running the demos

First you need to make sure beefy and browserify is installed.

npm install beefy -g
npm install browserify -g

It's nice to get LiveReload for development, too: https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en

Then you serve up the demo like so:

cd knit.js
beefy src/simple.js 8080 --live --cwd demos -- --require './lib/index.js:knit'

Open localhost:8080 in your browser to see the demo. Changing the JS file should refresh the browser page.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i knit.js

Weekly Downloads

4

Version

0.0.3

License

none

Last publish

Collaborators

  • mattdesl