( बबलू ) - Package for manipulating color of PNG with given hex
$ npm install --save bablu
const fs = require('fs')
const bablu = require('bablu')
const url = 'https://cdn.discordapp.com/emojis/891761238994976788.png';
(async () => {
// Convert from url
const imageBuffer = await bablu(url, '#F05454')
fs.writeFileSync('emoji-red.png', imageBuffer)
// Convert from buffer
const image = fs.readFileSync('emoji.png')
const imageBuffer2 = await bablu(image, '#FFC069')
fs.writeFileSync('emoji-yellow.png', imageBuffer2)
})()
The Bablu project is released under the GNU 3.0.
Developed & maintained By Darshan Patel.