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",