Documentation
¶
Overview ¶
Package raingo provides functions for printing colourful, formatted text to the terminal using ANSI escape codes. Formatting is automatically disabled when output is not a terminal, such as when piped to a file or another process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*style)
Option configures the style applied to text when printing. Multiple Options can be passed to Print and Println to combine styles.
func BGGradient ¶
BGGradient sets a left-to-right RGB gradient on the background, interpolating from (r1, g1, b1) to (r2, g2, b2) across each character.
func TextColour ¶
TextColour sets the text colour using RGB values (0-255).
func TextGradient ¶
TextGradient sets a left-to-right RGB gradient on the text, interpolating from (r1, g1, b1) to (r2, g2, b2) across each character.