struct

Lolcat::Options

Inherits Struct < Value < Object

Configuration options for the lolcat colorization process.

This struct holds all the parameters that control how text is colorized, including color cycling speed, animation settings, and display options.

Constructors

new(action : Lolcat::Action = Action::Lolcat, spread : Float64 = 3.0, freq : Float64 = 0.1, offset : Float64 = rand * 256.0, animate : Bool = false, duration : Int32 = 12, speed : Float64 = 20.0, invert : Bool = false, force : Bool = false)
Source

Instance methods

action

The action to perform (Lolcat, Version, or Help)

Source
action=(action : Action)

The action to perform (Lolcat, Version, or Help)

Source
animate=(animate : Bool)

Whether to animate the colors (shifting rainbow effect)

Source
animate?

Whether to animate the colors (shifting rainbow effect)

Source
duration

Number of animation frames to display

Source
duration=(duration : Int32)

Number of animation frames to display

Source
force=(force : Bool)

Whether to force color output even when not outputting to a TTY

Source
force?

Whether to force color output even when not outputting to a TTY

Source
freq

Controls how quickly the colors cycle (higher = faster color change)

Source
freq=(freq : Float64)

Controls how quickly the colors cycle (higher = faster color change)

Source
invert=(invert : Bool)

Whether to use background colors instead of foreground colors

Source
invert?

Whether to use background colors instead of foreground colors

Source
offset

Starting position in the color cycle (randomized by default)

Source
offset=(offset : Float64)

Starting position in the color cycle (randomized by default)

Source
speed

Animation speed (frames per second)

Source
speed=(speed : Float64)

Animation speed (frames per second)

Source
spread

Controls how far apart the colors are spread (higher = slower color change)

Source
spread=(spread : Float64)

Controls how far apart the colors are spread (higher = slower color change)

Source