struct
Lolcat::Options
- Lolcat::Options
- Struct
- Value
- Object
Overview
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.
Defined in:
lolcat/options.crConstructors
Instance Method Summary
-
#action : Action
The action to perform (Lolcat, Version, or Help)
-
#action=(action : Action)
The action to perform (Lolcat, Version, or Help)
-
#animate=(animate : Bool)
Whether to animate the colors (shifting rainbow effect)
-
#animate? : Bool
Whether to animate the colors (shifting rainbow effect)
-
#duration : Int32
Number of animation frames to display
-
#duration=(duration : Int32)
Number of animation frames to display
-
#force=(force : Bool)
Whether to force color output even when not outputting to a TTY
-
#force? : Bool
Whether to force color output even when not outputting to a TTY
-
#freq : Float64
Controls how quickly the colors cycle (higher = faster color change)
-
#freq=(freq : Float64)
Controls how quickly the colors cycle (higher = faster color change)
-
#invert=(invert : Bool)
Whether to use background colors instead of foreground colors
-
#invert? : Bool
Whether to use background colors instead of foreground colors
-
#offset : Float64
Starting position in the color cycle (randomized by default)
-
#offset=(offset : Float64)
Starting position in the color cycle (randomized by default)
-
#speed : Float64
Animation speed (frames per second)
-
#speed=(speed : Float64)
Animation speed (frames per second)
-
#spread : Float64
Controls how far apart the colors are spread (higher = slower color change)
-
#spread=(spread : Float64)
Controls how far apart the colors are spread (higher = slower color change)
Constructor Detail
Instance Method Detail
Controls how far apart the colors are spread (higher = slower color change)