fmt_gradient: Gradient text

View source: R/fmt.R

fmt_gradientR Documentation

Gradient text

Description

Gradient text

Usage

fmt_gradient(x, colors, bold = FALSE, output_type = c("ansi", "html", "plain"))

Arguments

x

Character: Text to colorize.

colors

Character vector: Colors to use for the gradient.

bold

Logical: If TRUE, make text bold.

output_type

Character: Output type ("ansi", "html", "plain").

Value

Character: Text with gradient color applied.

Author(s)

EDG

Examples

fmt_gradient("Gradient Text", colors = c("blue", "red")) |> message()

rtemis.core documentation built on April 22, 2026, 1:11 a.m.