Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created May 8, 2018 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/7b1501112773ddf6934eccc39d9bde51 to your computer and use it in GitHub Desktop.
Save tmcw/7b1501112773ddf6934eccc39d9bde51 to your computer and use it in GitHub Desktop.
module.exports.gif = function gif(r, g, b) {
return 'R0lGODlhAQABAIAB' +
(new Buffer([0, r, g, b, 0, 0])).toString('base64') +
'ACwAAAAAAQABAAACAkQBADs=';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment