|
|
il y a 3 mois | |
|---|---|---|
| .. | ||
| es | il y a 3 mois | |
| src | il y a 3 mois | |
| test | il y a 3 mois | |
| CHANGELOG.md | il y a 3 mois | |
| LICENSE | il y a 3 mois | |
| README.md | il y a 3 mois | |
| babel.config.js | il y a 3 mois | |
| index.d.ts | il y a 3 mois | |
| package.json | il y a 3 mois | |
@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();