diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2024-04-08 12:36:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-08 10:36:36 +0000 |
| commit | 36dcabe69289782e25305fd036028fd0c7759bf4 (patch) | |
| tree | 0a81ffa9988b47292be48dc71d96d18b1b99761a /crates | |
| parent | 9289d9334bbea9bb401b3b7ec1383be5dde02e82 (diff) | |
Fix gradient sample example (#3868)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/visualize/gradient.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/visualize/gradient.rs b/crates/typst/src/visualize/gradient.rs index c5e953da..19435ebd 100644 --- a/crates/typst/src/visualize/gradient.rs +++ b/crates/typst/src/visualize/gradient.rs @@ -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 |
