Skip to content

Px.js is a tiny library for HTML5 Canvas. It reads image data into Javascript.

License

Notifications You must be signed in to change notification settings

nickolasnikolic/px.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

px.js

Px.js is a tiny library for HTML5 Canvas. It reads image data into Javascript.

2kb at the time of this writing, the library does just one thing: load image data into JS.

You will find in px.js:

  • 2kb file size unminified
  • self-documenting with 3 functions
  • a simple approach that gives you an array of pixel objects

Pixel objects give you:

  • an x and y
  • rgba values

  • usage: var p = new Px(imageUrl);
  • retrieving image data: p.get();

It is the core js used in this effect

About

Px.js is a tiny library for HTML5 Canvas. It reads image data into Javascript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published