use nicer-looking spiral as favicon
This commit is contained in:
parent
e6f1f6c4ef
commit
1a806ef2c8
|
@ -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 |
|
@ -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
BIN
static/icons/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9 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 |
Loading…
Reference in a new issue