Skip to content

pencil-js/image-manipulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@pencil.js/image-manipulation

Installation

npm install @pencil.js/image-manipulation

Usage

import { use, Image } from "pencil.js";
import manipulation from "@pencil.js/image-manipulation";

use(manipulation);

const image = new Image(position, url);

// One manipulation
(async () => {
    await image.reverse();
    console.log("Done");
})();

// Multiple manipulation (done in parallel)
(async () => {
    await image.batch(
        image.reverse,
        [image.lighten, 0.7],
    );
    console.log("Done");
})();

License

MIT