From cc906c83cdf896d94b7ccf91258466714be631f6 Mon Sep 17 00:00:00 2001 From: Nick Senger Date: Wed, 8 Nov 2023 19:12:53 -0800 Subject: feat: quad shadows --- core/src/shadow.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 core/src/shadow.rs (limited to 'core/src/shadow.rs') diff --git a/core/src/shadow.rs b/core/src/shadow.rs new file mode 100644 index 00000000..238ea36a --- /dev/null +++ b/core/src/shadow.rs @@ -0,0 +1,15 @@ +//! Shadow +use crate::{Color, Vector}; + +/// A shadow +#[derive(Debug, Clone, Copy, PartialEq, Default)] +pub struct Shadow { + /// The color of the shadow + pub color: Color, + + /// The offset of the shadow + pub offset: Vector, + + /// The blur_radius of the shadow + pub blur_radius: f32, +} -- cgit