Fix gradient sample example (#3868)
This commit is contained in:
parent
9289d9334b
commit
36dcabe692
|
|
@ -29,7 +29,7 @@ use crate::visualize::{Color, ColorSpace, WeightedColor};
|
||||||
/// - As the fill of text:
|
/// - As the fill of text:
|
||||||
/// `{set text(fill: gradient.linear(..))}`
|
/// `{set text(fill: gradient.linear(..))}`
|
||||||
/// - As a color map you can [sample]($gradient.sample) from:
|
/// - As a color map you can [sample]($gradient.sample) from:
|
||||||
/// `{gradient.linear(..).sample(0.5)}`
|
/// `{gradient.linear(..).sample(50%)}`
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```example
|
/// ```example
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue