1.0.1 • Published 4 years ago

hex-gif v1.0.1

Weekly downloads
2
License
AGPL-3.0
Repository
github
Last release
4 years ago

Hex-GIF

Creates a tiny 1x1 pixel GIF from a hexadecimal color. This is nice because you don't have to use any native libraries that understand different image encodings, but hacky because it operates directly on the raw bytes.

Usage

const hexGif = require("hex-gif");

hexGif("#ff00ff"); // => Buffer <...>

This outputs abuffer for a 1x1 pixel magenta GIF.

Install

With npm installed, run

npm install hex-gif

License

AGPL-3.0