Fix gradient sample example (#3868)

This commit is contained in:
frozolotl 2024-04-08 12:36:36 +02:00 committed by GitHub
parent 9289d9334b
commit 36dcabe692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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