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 = NULL)

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 ("ansi", "html", "plain") or NULL: Output type. If NULL, resolved via get_output_type().

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 Sept. 20, 2026, 9:06 a.m.