summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/image.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/src/image.rs b/graphics/src/image.rs
index 9d09bf4c..318592be 100644
--- a/graphics/src/image.rs
+++ b/graphics/src/image.rs
@@ -18,8 +18,11 @@ pub enum Image {
/// The bounds of the image.
bounds: Rectangle,
- /// The rotation of the image in radians
+ /// The rotation of the image.
rotation: Radians,
+
+ /// The opacity of the image.
+ opacity: f32,
},
/// A vector image.
Vector {
@@ -32,8 +35,11 @@ pub enum Image {
/// The bounds of the image.
bounds: Rectangle,
- /// The rotation of the image in radians
+ /// The rotation of the image.
rotation: Radians,
+
+ /// The opacity of the image.
+ opacity: f32,
},
}