2023-11-08 19:12:53 -08:00
|
|
|
use crate::{Color, Vector};
|
|
|
|
|
|
2024-01-20 13:29:25 +01:00
|
|
|
/// A shadow.
|
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Default)]
|
2023-11-08 19:12:53 -08:00
|
|
|
pub struct Shadow {
|
2024-01-20 13:29:25 +01:00
|
|
|
/// The color of the shadow.
|
2023-11-08 19:12:53 -08:00
|
|
|
pub color: Color,
|
|
|
|
|
|
2024-01-20 13:29:25 +01:00
|
|
|
/// The offset of the shadow.
|
2023-11-08 19:12:53 -08:00
|
|
|
pub offset: Vector,
|
|
|
|
|
|
2024-01-20 13:29:25 +01:00
|
|
|
/// The blur radius of the shadow.
|
2023-11-08 19:12:53 -08:00
|
|
|
pub blur_radius: f32,
|
|
|
|
|
}
|