2.0.3 • Published 7 years ago

kaleidos v2.0.3

Weekly downloads
1
License
BSD
Repository
github
Last release
7 years ago

Kaleidos

Build Status js-standard-style npm-version
<canvas> kaleidoscope node module for use with browserify, webpack, etc.

Usage:

Install:

npm i kaleidos --save

Require the module:
const Kaleidos = require('kaleidos')
Instantiate with values:
// create image
const image = new Image()
image.src = 'http://i.imgur.com/YaZJZac.jpg'

// create a canvas
const canvas = document.createElement('canvas')

// instantiate
const kaleidos = new Kaleidos(canvas, {
  src: image // pass above image as source
})
Append to DOM and initialize on image load:
image.addEventListener('load', function () {
  document.body.appendChild(kaleidos.canvas)
  kaleidos.initialize()
})
Result:

kaleidos

Check the /examples
Try them out

TODO:

Add tests
Add more tests
Add more examples
Make examples better on mobile
Fix webcam example in Firefox
Update src to be image or video
Cleanup

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.5.7

8 years ago

0.5.6

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago