Site: isometric geometry, blocks shaded on three faces
This commit is contained in:
14 files changed
+1205
-4
No files matched your search
+11
-1
@@ -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);
|
||||
Reference in new issue
Block a user