use nicer-looking spiral as favicon
This commit is contained in:
		
							parent
							
								
									e6f1f6c4ef
								
							
						
					
					
						commit
						1a806ef2c8
					
				
					 5 changed files with 21 additions and 23 deletions
				
			
		|  | @ -6,7 +6,7 @@ | |||
|     <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> | ||||
|     <link rel="stylesheet" href="/css/base.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 }} | ||||
|   </head> | ||||
|   <body> | ||||
|  |  | |||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 17 KiB | 
|  | @ -1,16 +1,17 @@ | |||
| real unit = 0.5inch; | ||||
| real radius = 6*unit; | ||||
| real circleradius = 160; | ||||
| 
 | ||||
| real steps = 6; | ||||
| int degrees = 720; | ||||
| path circ = circle((0,0), circleradius); | ||||
| fill(circ, red); | ||||
| 
 | ||||
| guide arm; | ||||
| for (int i = 0; i <= steps; ++i) { | ||||
|   arm = arm..((i*radius/steps)*dir(i*degrees/steps)); | ||||
| guide spiral; | ||||
| 
 | ||||
| real curveFunc(real theta10) { | ||||
|   return 0.008*theta10*theta10 + 0.2*theta10; | ||||
| } | ||||
| 
 | ||||
| path circ = circle((0,0), radius); | ||||
| path arms = buildcycle(circ, arm, rotate(-45)*arm); | ||||
| fill(circ, black); | ||||
| fill(arms, red); | ||||
| fill(rotate(180)*arms, red); | ||||
| for (int i = 0; i < 200; i += 1) { | ||||
|   spiral = (curveFunc(i)*dir(10*i))..spiral..(curveFunc(i)*dir(180+10*i)); | ||||
| } | ||||
| 
 | ||||
| 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue