summaryrefslogtreecommitdiffstats
path: root/graphics/src/gradient.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-10 00:10:53 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-10 00:10:53 +0100
commit1480ab20306e463b69b2229dcd5e81d4c66b2a64 (patch)
treefa9e1557a68e0a423d858618dd2d2e1484757027 /graphics/src/gradient.rs
parentff9395838b5075eb357082f7bb9a6f9a58d7864b (diff)
downloadiced-1480ab20306e463b69b2229dcd5e81d4c66b2a64.tar.gz
iced-1480ab20306e463b69b2229dcd5e81d4c66b2a64.tar.bz2
iced-1480ab20306e463b69b2229dcd5e81d4c66b2a64.zip
Fix broken documentation links
Diffstat (limited to 'graphics/src/gradient.rs')
-rw-r--r--graphics/src/gradient.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/src/gradient.rs b/graphics/src/gradient.rs
index 64f9e4b3..83f25238 100644
--- a/graphics/src/gradient.rs
+++ b/graphics/src/gradient.rs
@@ -9,7 +9,7 @@ use crate::{Color, Point, Size};
/// A fill which transitions colors progressively along a direction, either linearly, radially (TBD),
/// or conically (TBD).
pub enum Gradient {
- /// A linear gradient interpolates colors along a direction from its [`start`] to its [`end`]
+ /// A linear gradient interpolates colors along a direction from its `start` to its `end`
/// point.
Linear(Linear),
}
@@ -23,10 +23,15 @@ impl Gradient {
#[derive(Debug, Clone, Copy, PartialEq)]
/// A point along the gradient vector where the specified [`color`] is unmixed.
+///
+/// [`color`]: Self::color
pub struct ColorStop {
/// Offset along the gradient vector.
pub offset: f32,
+
/// The color of the gradient at the specified [`offset`].
+ ///
+ /// [`offset`]: Self::offset
pub color: Color,
}