$ npm install @jimp/plugin-displace
Displace an image.
Displaces the image based on the provided displacement map
import jimp from "jimp";
async function main() {
const image = await jimp.read("test/image.png");
// Make me better!
image.displace(map, 10);
}
main();
© 2010 - cnpmjs.org x YWFE | Home | YWFE