summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst/src/visualize/color.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/typst/src/visualize/color.rs b/crates/typst/src/visualize/color.rs
index b327e92d..fe66cc1a 100644
--- a/crates/typst/src/visualize/color.rs
+++ b/crates/typst/src/visualize/color.rs
@@ -105,7 +105,12 @@ const ANGLE_EPSILON: f32 = 1e-5;
///
/// # Predefined color maps
/// Typst also includes a number of preset color maps that can be used for
-/// gradients. Most of these color maps are chosen to be color blind friendly.
+/// [gradients]($gradient.linear). These are simply arrays of colors defined in
+/// the module `color.map`.
+///
+/// ```example
+/// #circle(fill: gradient.linear(..color.map.crest))
+/// ```
///
/// | Map | Details |
/// |------------|:------------------------------------------------------------|