Graphics and media/Collections of tips and tricks/Apply shading to text

Unofficial ConTeXt Wiki mirror

Last modified: 2025-02-24

MetaPost provides shading functions making it easy to fill a path with linear or circular shading. In this simple example, we show how they can be used in conjunction with the outlinetext function and && path combination operator to fill text or equations with a color gradient.

A slightly simpler approach is to use lmt_outline: