Mention color.map module, give example (#2918)

This commit is contained in:
Joseph Wilson 2023-12-14 01:20:48 +13:00 committed by GitHub
parent 231b96e5cf
commit 9cfe49e4ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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