Add logo. Programmer art!

This commit is contained in:
Sam McCall 2020-04-21 12:36:33 +02:00
parent efb0a8fab5
commit adc3c29c7f
5 changed files with 193 additions and 0 deletions

12
logo/build.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash -ex
inkscape clangd.svg --export-png=card.png -h=640
SMALLER="-strip -define png:compression-filter=3"
PAD_TO="-background none -gravity center -extent"
LOGO_ONLY="--export-id=CD --export-background-opacity=0"
CONTRAST="-level 20%,100%,1.4"
mogrify $SMALLER card.png
inkscape clangd.svg --export-png=logo.png -h=1024 $LOGO_ONLY
mogrify $SMALLER $PAD_TO 1024x1024 logo.png
inkscape clangd.svg --export-png=favicon.png -h=16 $LOGO_ONLY --export-area-snap
mogrify -define png:exclude-chunk=all $CONTRAST $PAD_TO 16x16 favicon.png

BIN
logo/card.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

181
logo/clangd.svg Normal file
View File

@ -0,0 +1,181 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="200mm"
height="100mm"
viewBox="0 0 200 100"
version="1.1"
id="svg8"
inkscape:export-filename="/home/sammccall/card.png"
inkscape:export-xdpi="162.56"
inkscape:export-ydpi="162.56"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="clangd.svg">
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient6203">
<stop
id="stop6201"
offset="0"
style="stop-color:#f0f8a0;stop-opacity:1" />
<stop
style="stop-color:#c1e0a4;stop-opacity:1;"
offset="0.75"
id="stop6272" />
<stop
id="stop6199"
offset="1"
style="stop-color:#5aab7b;stop-opacity:1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient6195">
<stop
style="stop-color:#0f5499;stop-opacity:1"
offset="0"
id="stop6191" />
<stop
style="stop-color:#0ed6ff;stop-opacity:1"
offset="1"
id="stop6193" />
</linearGradient>
<linearGradient
id="linearGradient6119"
osb:paint="solid">
<stop
style="stop-color:#75af89;stop-opacity:1;"
offset="0"
id="stop6117" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6195"
id="linearGradient6197"
x1="87.3125"
y1="236.14583"
x2="109.80209"
y2="199.10417"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-42.33333,27.781253)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient6203"
id="radialGradient6287"
cx="93.45755"
cy="230.91721"
fx="93.45755"
fy="230.91721"
r="20.843767"
gradientTransform="matrix(-2.0309823,-8.6890853e-7,7.0332774e-7,-1.6935434,253.83964,637.53298)"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient6203"
id="radialGradient6314"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-2.0309823,-8.6890853e-7,7.0332774e-7,-1.6935434,253.83964,637.53298)"
cx="93.45755"
cy="230.91721"
fx="93.45755"
fy="230.91721"
r="20.843767" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6195"
id="linearGradient6316"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-42.33333,27.781253)"
x1="87.3125"
y1="236.14583"
x2="109.80209"
y2="199.10417" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ecedea"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:zoom="1.5270238"
inkscape:cx="316.64656"
inkscape:cy="230.01457"
inkscape:document-units="mm"
inkscape:current-layer="layer2"
showgrid="true"
showguides="true"
inkscape:window-width="1724"
inkscape:window-height="1041"
inkscape:window-x="192"
inkscape:window-y="18"
inkscape:window-maximized="0"
fit-margin-top="10"
inkscape:pagecheckerboard="false">
<inkscape:grid
type="xygrid"
id="grid3780" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer2"
inkscape:label="layer"
style="display:inline"
transform="translate(0,-197)"
inkscape:groupmode="layer">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="87.181389"
y="259.77109"
id="clangd"><tspan
sodipodi:role="line"
id="tspan6291"
x="87.181389"
y="259.77109"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:25.39999962px;font-family:'Noto Sans Mono';-inkscape-font-specification:'Noto Sans Mono, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">clangd</tspan></text>
<g
style="display:inline"
id="CD"
inkscape:label="CD">
<path
id="C"
style="display:inline;fill:url(#radialGradient6314);fill-opacity:1;stroke:#055f25;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 63.5,225.5625 H 50.270837 c -13.229167,0 -26.458334,6.61458 -26.458334,26.45834 0,19.84374 13.229167,26.55586 26.599104,26.50658 L 63.5,278.47922 l 4e-5,-13.22917 H 50.270837 c 0,0 -12.705299,1e-4 -12.964614,-13.09685 -0.264553,-13.36153 12.964614,-13.36153 12.964614,-13.36153 H 63.5 Z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="czsscccsccc"
inkscape:export-xdpi="387.07999"
inkscape:export-ydpi="387.07999"
inkscape:label="C" />
<path
id="D"
style="fill:url(#linearGradient6316);fill-opacity:1;stroke:#0d386b;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 64.82292,212.33333 h 10.58333 c 0.62363,0 1.32292,0.69929 1.32292,1.32292 v 50.27083 c 0,0.62363 -0.69929,1.32292 -1.32292,1.32292 H 63.5 50.270837 c 0,0 -12.612556,-1.5e-4 -12.924189,-13.37203 -0.304978,-13.0863 12.924189,-13.0863 12.924189,-13.0863 H 63.5 v -25.13542 c 0,-0.62363 0.69929,-1.32292 1.32292,-1.32292 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssccccsccss"
inkscape:label="D" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
logo/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

BIN
logo/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB