|
hace 1 mes | |
---|---|---|
.. | ||
es | hace 1 mes | |
src | hace 1 mes | |
test | hace 1 mes | |
CHANGELOG.md | hace 1 mes | |
LICENSE | hace 1 mes | |
README.md | hace 1 mes | |
babel.config.js | hace 1 mes | |
index.d.ts | hace 1 mes | |
package.json | hace 1 mes |
@param {function(Error, Jimp)} cb (optional) a callback for when complete
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
image.shadow();
// or
image.shadow({ opacity: 0.8, size: 1.2, blur: 10, x: -75, y: -75 });
}
main();