⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

render_shadow

Function render_shadow 

Source
pub fn render_shadow(
    shadow_buffer: &mut [u32],
    buf_width: u32,
    width: u32,
    height: u32,
    radius: u32,
    opacity: u8,
)
Expand description

Render a soft shadow behind a window surface.

shadow_buffer should be pre-allocated with (width + 2*radius) * (height + 2*radius) u32 elements. Uses a 3-pass box blur approximating a Gaussian shadow.