diff options
| author | Joseph Wilson <jo.alex.w@gmail.com> | 2023-12-14 01:20:48 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-13 13:20:48 +0100 |
| commit | 9cfe49e4ae63cd80a23ae0f32ac15dcc859fb640 (patch) | |
| tree | eefe03a11afe1f8cd1521d68ae7ecbfe4de0ed23 | |
| parent | 231b96e5cff47a78b94ffa95d04f0f5955aefab3 (diff) | |
Mention `color.map` module, give example (#2918)
| -rw-r--r-- | crates/typst/src/visualize/color.rs | 7 |
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 | /// |------------|:------------------------------------------------------------| |
