Skip to content

Commit 4e8f658

Browse files
Merge pull request #17 from hyanwong/main
Add code to generate a laptop sticker
2 parents 8c33129 + ed1e54e commit 4e8f658

File tree

4 files changed

+122
-0
lines changed

4 files changed

+122
-0
lines changed

sticker/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Note that for aesthetic purposes, the original tskit logo at ../tskit_logo.svg
2+
# was altered slightly for this makefile, to create a version where the root branch
3+
# is centred.
4+
5+
all: tskit_logo_hexsticker.png
6+
7+
tskit_logo.png: ../tskit_logo.svg
8+
inkscape --export-type="png" -d 300 -o tskit_logo.png tskit_logo_root_centred.svg
9+
10+
tskit_logo_square.png: tskit_logo.png
11+
convert tskit_logo.png -background white -gravity center -resize 3000x3000 \
12+
-extent 4000x3650 -gravity south -splice 0x350 tskit_logo_square.png
13+
14+
# Two colours in logo: #045167 #12e3a8
15+
tskit_logo_hexsticker.png: tskit_logo_square.png
16+
hexsticker -v --padding-size 25 --supersample 2 \
17+
--border-size 640 --border-color '#045167' \
18+
-o tskit_logo_hexsticker.png tskit_logo_square.png
19+
clean:
20+
rm *.png

sticker/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Tskit laptop sticker
2+
3+
The makefile in this directory creates a hexagonal laptop sticker continaing the tskit logo.
4+
5+
Ensure that Imagemagick, inkscape, and the `hexsticker` python package are installed, then
6+
run `make`

sticker/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Note that imagemagick and inkscape are also required for the makefile to run
2+
hexsticker
Lines changed: 94 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)