Skip to content
Build memes with HTML5.
JavaScript
Find file
Latest commit e21ebcc @rjvir rjvir removed line break
Failed to load latest commit information.
demo Move demo into its own folder
.gitignore Add gitignore
LICENSE.txt Add license
README.md Add readme
meme.js removed line break

README.md

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.

Something went wrong with that request. Please try again.