-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
922fbaf
commit a43ebd0
Showing
43 changed files
with
1,788 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
body { | ||
margin: 0; | ||
:root { | ||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
line-height: 1.5; | ||
font-weight: 400; | ||
|
||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-text-size-adjust: 100%; | ||
|
||
color-scheme: dark light; | ||
background-color: hsl(0, 0%, 10%); | ||
color: #eee; | ||
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; | ||
} | ||
|
||
html, body { | ||
position: relative; | ||
margin: 0; | ||
padding: 0; | ||
min-height: 100vh; | ||
} | ||
|
||
body { | ||
min-width: 320px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
main { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 0; | ||
} | ||
|
||
#wrapper { | ||
height: var(--elt-size); | ||
margin: 0 auto; | ||
padding: 2rem 0; | ||
aspect-ratio: 1; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
canvas { | ||
box-shadow: 2px 2px 1rem #0009; | ||
border: 1px solid #fff3; | ||
} | ||
} | ||
|
||
#wrapper.loading:after { | ||
content: 'Loading ...'; | ||
display: block; | ||
position: absolute; | ||
padding: 0.25rem 0.5rem; | ||
background-color: hsl(0, 0%, 15%); | ||
box-shadow: 2px 2px 1rem #0006; | ||
border-radius: 0.125rem; | ||
} | ||
|
||
#content { | ||
position: relative; | ||
width: var(--elt-size); | ||
margin: 0 auto; | ||
|
||
pre { | ||
background-color: #0003; | ||
/* width: fit-content; */ | ||
padding: 0.75rem 1.25rem | ||
} | ||
|
||
div { | ||
padding: 0.75rem 0 1.25rem; | ||
} | ||
|
||
div > img { | ||
display: block; | ||
position: relative; | ||
max-width: 100%; | ||
margin: 0 auto 2rem auto; | ||
} | ||
|
||
.col-2 { | ||
display: grid; | ||
grid-template-columns: auto auto; | ||
column-gap: 1rem; | ||
} | ||
} | ||
|
||
@media (orientation: landscape) { | ||
:root { | ||
--elt-size: calc(100vh - 2 * 2rem); | ||
} | ||
} | ||
|
||
@media (orientation: portrait) { | ||
:root { | ||
--elt-size: calc(100vw - 2 * 2rem); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" /> | ||
<link rel="stylesheet" href="/static/global.css"> | ||
<title>Fusilli 2024-07-23</title> | ||
</head> | ||
<body> | ||
<main> | ||
<div id="wrapper"></div> | ||
<div id="content"> | ||
<h1>Fusilli</h1> | ||
<h4>2024-07-23</h4> | ||
<p>Click on canvas to regenerate.</p> | ||
|
||
<pre> | ||
type EdgeData = { | ||
lane: 'B' | 'L' | 'F' | 'R'; | ||
color: 'hsl(hue, sat, lgt)' | 'rgb(r, g, b)'; | ||
} | ||
|
||
type TileData = { | ||
coords: [number, number]; | ||
hasIntersections: boolean; | ||
edges: Record<'N' | 'E' | 'S' | 'W', ParsedEdgeData>; | ||
};</pre> | ||
<div class="col-2"> | ||
<div> | ||
<img src="./assets/tiles.png"> | ||
</div> | ||
<div> | ||
<img src="./assets/lanes.png"> | ||
</div> | ||
</div> | ||
<div> | ||
<img src="./assets/output32x32a.png"> | ||
<img src="./assets/output32x32b.png"> | ||
<img src="./assets/output64x64.png"> | ||
<img src="./assets/output96x96.png"> | ||
<img src="./assets/output256x256a.png"> | ||
<img src="./assets/output256x256b.png"> | ||
<img src="./assets/output256x256c.png"> | ||
</div> | ||
</div> | ||
</main> | ||
<script src="/p5.js/1.9.4/p5.min.js"></script> | ||
<script type="module"> | ||
import './assets/style.css' | ||
import { sketch } from './src/sketch.ts' | ||
new window.p5(sketch, document.getElementById('wrapper')); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "fusilli", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"tsc": "tsc --noEmit", | ||
"dev": "vite", | ||
"build": "vite build" | ||
}, | ||
"author": "ich", | ||
"license": "MIT" | ||
} |
Oops, something went wrong.