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

apply_opacity

Function apply_opacity 

Source
pub fn apply_opacity(pixel: u32, opacity: u8) -> u32
Expand description

Apply a per-surface opacity to a u32 pixel (XRGB8888 -> ARGB8888).

Multiplies the existing alpha channel by opacity / 255.