Skip to content

melrose13-69/mosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

const imagePath = resolve(__dirname, '../src/images/example.jpg')
const imageAspectRatio = [11, 12] // [xCubes, yCubes] cubes in image
const cubeAspectRatio = [7, 10] // [xMosaics, yMosaics] mosaics in cube

const mosaicMatrix = new MosaicMatrix(imagePath, imageAspectRatio, cubeAspectRatio)

mosaicMatrix.generateMosaicImage // return base64 image
mosaicMatrix.generateInstructions // return PDF document

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published