From 7a4691e3e41baa4e1376cc2de39616ee3e9982d1 Mon Sep 17 00:00:00 2001 From: TerraMaster85 Date: Thu, 24 Oct 2024 22:13:06 -0400 Subject: [PATCH] stopgap alpha in storms until acq a towns-streets-borders layer; add host script in wxbox-web --- wxbox-pal/src/lib.rs | 18 +++++++++--------- wxbox-web/package.json | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/wxbox-pal/src/lib.rs b/wxbox-pal/src/lib.rs index e350f0f..c5ea6c0 100644 --- a/wxbox-pal/src/lib.rs +++ b/wxbox-pal/src/lib.rs @@ -29,14 +29,14 @@ pub fn create_test_palette() -> Palette { let mut out = vec![]; out.push((r!(f64::NEG_INFINITY, 10.0), (c!(164, 164, 255), c!(164, 164, 255)))); - out.push((r!(10.0, 20.0), (c!(64, 128, 255), c!(32, 64, 128)))); - out.push((r!(20.0, 30.0), (c!(0, 255, 0), c!(0, 128, 0)))); - out.push((r!(30.0, 40.0), (c!(255, 255, 0), c!(255, 128, 0)))); - out.push((r!(40.0, 50.0), (c!(255, 255, 0), c!(255, 128, 0)))); - out.push((r!(50.0, 60.0), (c!(255, 0, 0), c!(160, 0, 0)))); - out.push((r!(60.0, 70.0), (c!(255, 0, 255), c!(128, 0, 128)))); - out.push((r!(70.0, 80.0), (c!(255, 255, 255), c!(128, 128, 128)))); - out.push((r!(80.0, f64::INFINITY), (c!(128, 128, 128), c!(128, 128, 128)))); + out.push((r!(10.0, 20.0), (c!(64, 128, 255, 128), c!(32, 64, 128, 192)))); + out.push((r!(20.0, 30.0), (c!(0, 255, 0, 192), c!(0, 128, 0, 192)))); + out.push((r!(30.0, 40.0), (c!(255, 255, 0, 192), c!(255, 128, 0, 192)))); + out.push((r!(40.0, 50.0), (c!(255, 255, 0, 192), c!(255, 128, 0, 192)))); + out.push((r!(50.0, 60.0), (c!(255, 0, 0, 192), c!(160, 0, 0, 192)))); + out.push((r!(60.0, 70.0), (c!(255, 0, 255, 192), c!(128, 0, 128, 192)))); + out.push((r!(70.0, 80.0), (c!(255, 255, 255, 192), c!(128, 128, 128, 192)))); + out.push((r!(80.0, f64::INFINITY), (c!(128, 128, 128, 192), c!(128, 128, 128, 192)))); out } @@ -79,4 +79,4 @@ fn lerp_color(c0: Color, c1: Color, t: f64) -> Color { blue: lerp(c0.blue as f64, c1.blue as f64, t) as u8, alpha: lerp(c0.alpha as f64, c1.alpha as f64, t) as u8 } -} \ No newline at end of file +} diff --git a/wxbox-web/package.json b/wxbox-web/package.json index 0d6092e..4ef5d51 100644 --- a/wxbox-web/package.json +++ b/wxbox-web/package.json @@ -4,6 +4,7 @@ "type": "module", "scripts": { "dev": "vite dev", + "host": "vite dev --host", "build": "vite build", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",