aboutsummaryrefslogtreecommitdiff
path: root/src/ui/demoView.ts
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2025-08-01 19:26:25 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2025-08-01 19:26:25 +0100
commit4ed6cae45c96166f22b1d295bda12dd9913385a8 (patch)
tree453a52d77c370ba71a57ab3683d537dda52650b0 /src/ui/demoView.ts
parentabe1f21f84df5864e8a7781864d9e32436bde2d4 (diff)
downloadjs-raytracer-4ed6cae45c96166f22b1d295bda12dd9913385a8.tar.xz
js-raytracer-4ed6cae45c96166f22b1d295bda12dd9913385a8.zip
Update colors and typography
Diffstat (limited to 'src/ui/demoView.ts')
-rw-r--r--src/ui/demoView.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/demoView.ts b/src/ui/demoView.ts
index e42696b..9b9c3c2 100644
--- a/src/ui/demoView.ts
+++ b/src/ui/demoView.ts
@@ -68,7 +68,7 @@ function initDispatcher(width: number, height: number, options: RaytracerOptions
spheres,
planes,
lights,
- new Colour(221, 221, 221),
+ new Colour(40, 40, 40),
options
);
@@ -92,7 +92,9 @@ function parseOptions(): RaytracerOptions {
maxDrawDistance: 1000,
directMemoryTransfer: getInputElement('direct-transfer').checked,
chunkSize: parseInt(getInputElement('chunk-size').value, 10),
- chunkAllocationMode: getChunkAllocationMode()
+ chunkAllocationMode: getChunkAllocationMode(),
+ chunkBorderColour: new Colour(220, 128, 128),
+ chunkUnrenderedColour: new Colour(120, 120, 120)
};
}