OLD | NEW |
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 Loading... |
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() |
OLD | NEW |