pub fn box_shadow(
x: impl Into<Pixels>,
y: impl Into<Pixels>,
blur: impl Into<Pixels>,
spread: impl Into<Pixels>,
color: Hsla,
) -> BoxShadow
Expand description
Create a BoxShadow
like CSS.
e.g:
If CSS is box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
Then the equivalent in Rust is box_shadow(0., 0., 10., 0., hsla(0., 0., 0., 0.1))