Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: bower_components/gif.js/site/contents/code.md

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1
2 ```javascript
3 var gif = new GIF({
4 workers: 2,
5 quality: 10
6 });
7
8 // add a image element
9 gif.addFrame(imageElement);
10
11 // or a canvas element
12 gif.addFrame(canvasElement, {delay: 200});
13
14 // or copy the pixels from a canvas context
15 gif.addFrame(ctx, {copy: true});
16
17 gif.on('finished', function(blob) {
18 window.open(URL.createObjectURL(blob));
19 });
20
21 gif.render();
22
23 ```
OLDNEW
« no previous file with comments | « bower_components/gif.js/site/config.json ('k') | bower_components/gif.js/site/contents/images/loading.gif » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698