Site: isometric geometry, blocks shaded on three faces

This commit is contained in:
ZacharyZhang-NY committed 2026-10-08 22:59:44 -04:00
1 parent 1178aaa4f2
commit 01397eb1e5
14 files changed
+1205 -4

No files matched your search

+11 -1
View File
@@ -1,5 +1,15 @@
import "./style.css";
import "./iso.css";
import { block, stage } from "./iso.ts";
const app = document.querySelector<HTMLElement>("#app");
if (!app) throw new Error("index.html has no #app");
app.textContent = "Ely Office";
const desk = stage(12, 12);
desk.append(
block({ x: 0, y: 0, w: 12, d: 12, h: 0.5, tone: "#e9e9e6" }),
block({ x: 2, y: 2, z: 0.5, w: 3, d: 3, h: 4, tone: "#f4f4f2" }),
block({ x: 7, y: 2, z: 0.5, w: 3, d: 3, h: 2, tone: "#f4f4f2" }),
block({ x: 2, y: 7, z: 0.5, w: 3, d: 3, h: 1, tone: "#3d7fe5" }),
);
app.append(desk);