Since: Version 20220807-113146-c2fee766
The functionality described in this section requires version 20220807-113146-c2fee766 of wezterm, or a more recent version.
Given a gradient spec and a number of colors, returns a table holding that many colors spaced evenly across the range of the gradient.
Each element in the returned array is a Color object.
This is useful for example to generate colors for tabs, or to do something fancy like interpolate colors across a gradient based on the time of the day.
gradient is any gradient allowed by the
This example is what you'd see if you opened up the debug overlay to try this out in the repl: