Built with blockbuilder.org
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| margin: 0; | |
| background: #d1d1d1; | |
| } | |
| svg { | |
| display: block; | |
| } | |
| circle, ellipse, line, path, polygon, polyline, rect { | |
| fill:none; | |
| stroke: #222; | |
| } | |
| text { | |
| text-anchor: middle; | |
| dominant-baseline: middle; | |
| fill: #222; | |
| } | |
| .f { | |
| fill: #222; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.13/d3.js"></script> | |
| <script src="https://t.d3fc.io/base.js"></script> | |
| <script> | |
| function tweet(t) { | |
| 'use strict'; | |
| // insert tweet here | |
| P(d.geom.voronoi(rn(-w/2,w/2,25).map(d=>[d,99*s(d*t/1e5)]))).a({d:d=>'M'+d.join()}).y({fill:(d,i)=>c2().range()[i]}) | |
| // end tweet | |
| } | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment