Created
September 4, 2016 18:52
-
-
Save ttfkam/3a3b20498e7b1c7db66ac64e562d81ea to your computer and use it in GitHub Desktop.
Someone said something about a file size strawman...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg viewBox="0 0 480 480" width="32" height="32" xmlns="http://www.w3.org/2000/svg"> | |
<style> | |
.cord{fill:none;stroke:#000;stroke-width:14;} | |
.filler{fill:#FF0;stroke: none;} | |
.frame{fill:none;stroke:#333;stroke-linecap:round;stroke-width:5;} | |
.keys{fill:none;stroke:#FFF;stroke-dasharray:16 8;stroke-width: 24;} | |
.keyboard,.monitor{fill:#CCC;stroke:#000;stroke-linejoin:round;stroke-width:12;} | |
.keyboard{fill:#999;stroke-width:8;} | |
.screen{fill:#FFF;stroke:none;} | |
.shadow{fill:#000;fill-opacity:.3;stroke:none;} | |
</style> | |
<path class="shadow" d="m370,320a50 20 0 0 1 0 70z"/> | |
<path class="monitor" d="m164,16l127,31l0,45l116,30l-1,249l-243,-106l1,-249z"/> | |
<path class="keyboard" d="m75,251l261,123l3,45l-87,54l-247,-123l1,-24l69,-75z"/> | |
<path class="cord" d="m370,356q-5,35 20,40t20,10q0,10 -20,10t-30,-10 -20-10"/> | |
<path class="filler" d="m168,20l120,30l-1,54l-119,-31l0,-53z"/> | |
<path class="screen" d="m189,100l195,52l-1,179l-197,-81.5l3,-150z"/> | |
<path class="frame" d="m368,150-179,-51l-1,138"/> | |
<path class="keys" d="M73,279L306,390M46.5,306.5L279.5,417.5M22.5,333.5L255.5,444.5"/> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://blog.leahhanson.us/post/recursecenter2016/haiku_icons.html
Not 100% faithful, but close enough for illustrative purposes. 1096 bytes with some optimization still available. Compressed with zopfli to make an .svgz it ends up 540 bytes. My math may be off, but I think that's smaller than 768 bytes. ;-)
I could make it smaller by simplifying some paths further, making vertical or horizontal paths instead of specifying x/y line coordinates, remove some more spaces, make fill and stroke defaults that inherit for paths, etc.