Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

BuddyMeme/Meme.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meme.js

Use one function to generate a meme.

You can call it all with strings:

Meme('dog.jpg', 'canvasID', 'Buy pizza', 'Pay in snakes');

Or with a selected canvas element:

var canvas = document.getElementById('canvasID');
Meme('wolf.jpg', canvas, 'The time is now', 'to take what\'s yours');

Or with a jQuery/Zepto selection:

Meme('spidey.jpg', $('#canvasID'), 'Did someone say', 'Spiderman JS?');

You can also pass in an image:

var img = new Image();
img.src = 'insanity.jpg';
var can = document.getElementById('canvasID');
Meme(img, can, 'you ignore my calls', 'I ignore your screams of mercy');

License info is in LICENSE.txt.

About

UNMAINTAINED. Build memes with HTML5.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published