Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
murl-digital committed Apr 22, 2024
1 parent 5f3a712 commit 1a95c48
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/epaint/src/color.rs
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ pub enum ColorMode {
Solid(Color32),

/// Provide a callback which takes in the path's bounding box and a position and converts it to a color.
/// When used with a path, the bounding box will have a margin of ``feathering + 1.0``
/// When used with a path, the bounding box will have a margin of [`TessellationOptions::feathering_size_in_pixels`](`crate::tessellator::TessellationOptions::feathering_size_in_pixels`)
///
/// **This cannot be serialized**
#[cfg_attr(feature = "serde", serde(skip))]
3 changes: 2 additions & 1 deletion crates/epaint/src/stroke.rs
Original file line number Diff line number Diff line change
@@ -81,7 +81,8 @@ impl PathStroke {
}

/// Create a new `PathStroke` with a UV function
/// The bounding box passed to the callback will have a margin of ``feathering + 1.0``
///
/// The bounding box passed to the callback will have a margin of [`TessellationOptions::feathering_size_in_pixels`](`crate::tessellator::TessellationOptions::feathering_size_in_pixels`)
#[inline]
pub fn new_uv(
width: impl Into<f32>,

0 comments on commit 1a95c48

Please sign in to comment.