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

Side by Side Diff: polymer_0.4.0/bower_components/gif.js/site/contents/tests/canvas.coffee

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
1 require '../scripts/vendor/mootools.js' 1 require '../scripts/vendor/mootools.js'
2 ready = require '../scripts/vendor/ready.js' 2 ready = require '../scripts/vendor/ready.js'
3 3
4 num_frames = 20 4 num_frames = 20
5 width = 600 5 width = 600
6 height = 300 6 height = 300
7 text = 'HYPNO TOAD' 7 text = 'HYPNO TOAD'
8 textSize = 70 8 textSize = 70
9 9
10 now = window.performance?.now?.bind(window.performance) or Date.now 10 now = window.performance?.now?.bind(window.performance) or Date.now
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 grad.addColorStop 1, hsl (p + 0.2) % 1, 1, 0.4 56 grad.addColorStop 1, hsl (p + 0.2) % 1, 1, 0.4
57 ctx.fillStyle = grad 57 ctx.fillStyle = grad
58 ctx.fillRect 0, 0, width, height 58 ctx.fillRect 0, 0, width, height
59 ctx.fillStyle = hsl (p + 0.5) % 1, 1, 0.7 59 ctx.fillStyle = hsl (p + 0.5) % 1, 1, 0.7
60 ctx.strokeStyle = hsl (p + 0.8) % 1, 1, 0.9 60 ctx.strokeStyle = hsl (p + 0.8) % 1, 1, 0.9
61 ctx.fillText text, w2, h2 61 ctx.fillText text, w2, h2
62 ctx.strokeText text, w2, h2 62 ctx.strokeText text, w2, h2
63 gif.addFrame ctx, {copy: true, delay: 20} 63 gif.addFrame ctx, {copy: true, delay: 20}
64 64
65 gif.render() 65 gif.render()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698