1.0.5 • Published 8 years ago

png-to-matrix v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

PNG To Matrix

Convert Images to Matrices with one simple function

How it works:

const pngToMatrix = require('png-to-matrix')

pngToMatrix("path/to/image", (matrix) => {
	console.log(matrix)
	/*
	** Returns:
	** [ 'N Dimensions of X as a numerical key': [ N Dimensions of Y as an array - Each array value has a "r,g,b,a" value. ] ] }
	*/
})

Published under MIT License

1.0.5

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago