stopgap alpha in storms until acq a towns-streets-borders layer; add host script in wxbox-web

This commit is contained in:
TerraMaster85 2024-10-24 22:13:06 -04:00
parent 814daf48cf
commit 7a4691e3e4
2 changed files with 10 additions and 9 deletions

View File

@ -29,14 +29,14 @@ pub fn create_test_palette() -> Palette {
let mut out = vec![]; let mut out = vec![];
out.push((r!(f64::NEG_INFINITY, 10.0), (c!(164, 164, 255), c!(164, 164, 255)))); 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!(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), c!(0, 128, 0)))); 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), c!(255, 128, 0)))); 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), c!(255, 128, 0)))); 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), c!(160, 0, 0)))); 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), c!(128, 0, 128)))); 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), c!(128, 128, 128)))); 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), c!(128, 128, 128)))); out.push((r!(80.0, f64::INFINITY), (c!(128, 128, 128, 192), c!(128, 128, 128, 192))));
out 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, 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 alpha: lerp(c0.alpha as f64, c1.alpha as f64, t) as u8
} }
} }

View File

@ -4,6 +4,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
"host": "vite dev --host",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",