summaryrefslogtreecommitdiffstats
path: root/graphics/src/gradient.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-06-21 18:44:03 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-21 18:44:03 +0200
commit7344a310107cd25e64d571fbcb462a7f02b3e8d5 (patch)
treea338735923aac942d31b013af123b5f61489e8e5 /graphics/src/gradient.rs
parente8b1e5a112e7f54689947137932aa18dd46f567a (diff)
parenta7224a782751f2927b8bcce7ade26d3557563ae5 (diff)
downloadiced-7344a310107cd25e64d571fbcb462a7f02b3e8d5.tar.gz
iced-7344a310107cd25e64d571fbcb462a7f02b3e8d5.tar.bz2
iced-7344a310107cd25e64d571fbcb462a7f02b3e8d5.zip
Merge pull request #2475 from vladh/impl-copy-fill-stroke
Implement Copy on Fill and Stroke
Diffstat (limited to 'graphics/src/gradient.rs')
-rw-r--r--graphics/src/gradient.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/gradient.rs b/graphics/src/gradient.rs
index 603f1b4a..54261721 100644
--- a/graphics/src/gradient.rs
+++ b/graphics/src/gradient.rs
@@ -9,7 +9,7 @@ use bytemuck::{Pod, Zeroable};
use half::f16;
use std::cmp::Ordering;
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, Copy, PartialEq)]
/// A fill which linearly interpolates colors along a direction.
///
/// For a gradient which can be used as a fill for a background of a widget, see [`crate::core::Gradient`].