summaryrefslogtreecommitdiffstats
path: root/core/src/shadow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/shadow.rs')
-rw-r--r--core/src/shadow.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/src/shadow.rs b/core/src/shadow.rs
new file mode 100644
index 00000000..803101ed
--- /dev/null
+++ b/core/src/shadow.rs
@@ -0,0 +1,14 @@
+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,
+}