mirror of
https://github.com/typst/typst
synced 2025-05-22 21:15:28 +08:00
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:
|
||||
/// `{set text(fill: gradient.linear(..))}`
|
||||
/// - As a color map you can [sample]($gradient.sample) from:
|
||||
/// `{gradient.linear(..).sample(0.5)}`
|
||||
/// `{gradient.linear(..).sample(50%)}`
|
||||
///
|
||||
/// # Examples
|
||||
/// ```example
|
||||
|
Loading…
x
Reference in New Issue
Block a user