use nicer-looking spiral as favicon

mistress
xenofem 2020-06-22 03:03:07 -04:00
parent e6f1f6c4ef
commit 1a806ef2c8
5 changed files with 21 additions and 23 deletions

View File

@ -6,7 +6,7 @@
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<link rel="stylesheet" href="/css/base.css"> <link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/toggles.css"> <link rel="stylesheet" href="/css/toggles.css">
<link rel="icon" type="image/png" href="/icons/icon-192.png"> <link rel="icon" type="image/png" href="/icons/icon.png">
{{ block "styles" . }}{{ end }} {{ block "styles" . }}{{ end }}
</head> </head>
<body> <body>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1,16 +1,17 @@
real unit = 0.5inch; real circleradius = 160;
real radius = 6*unit;
real steps = 6; path circ = circle((0,0), circleradius);
int degrees = 720; fill(circ, red);
guide arm; guide spiral;
for (int i = 0; i <= steps; ++i) {
arm = arm..((i*radius/steps)*dir(i*degrees/steps)); real curveFunc(real theta10) {
return 0.008*theta10*theta10 + 0.2*theta10;
} }
path circ = circle((0,0), radius); for (int i = 0; i < 200; i += 1) {
path arms = buildcycle(circ, arm, rotate(-45)*arm); spiral = (curveFunc(i)*dir(10*i))..spiral..(curveFunc(i)*dir(180+10*i));
fill(circ, black); }
fill(arms, red);
fill(rotate(180)*arms, red); path p = buildcycle(spiral, circ);
fill(p, black);

BIN
static/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 14 KiB