gradient_spans

Function gradient_spans 

Source
pub fn gradient_spans(text: &str, gradient: &Gradient) -> Vec<Span<'static>>
Expand description

Generate styled spans for gradient text.

Creates a vector of single-character spans, each colored according to its position in the gradient.