Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GitDiffLogo = []string{
" ██████╗ ██╗███████╗███████╗",
" ██╔══██╗██║██╔════╝██╔════╝",
" ██║ ██║██║█████╗ █████╗ ",
" ██║ ██║██║██╔══╝ ██╔══╝ ",
" ██████╔╝██║██║ ██║ ",
" ╚═════╝ ╚═╝╚═╝ ╚═╝ ",
}
GitDiffLogo contains a stylized "DIFF" ASCII art
View Source
var PixelCat = []string{
" ▄██▄ ▄██▄ ",
" █████▄ ▄█████ ",
" ███░░██▄ ▄██░░███ ",
" ████░░░██▄ ▄██░░░████ ",
" ▀███░░▒██▄ ▄██▒░░███▀ ",
" ▀████████████████▀ ",
" ▄███████████████████▄ ",
" ██████████████████████████ ",
" ███▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███ ",
" ███▓░░░░░░░░░░░░░░░░░░░░░▓███ ",
" ██▓░░●●●░░░░░░░░░░●●●░░░░▓██ ",
" ██▓░░●●●░░░░░░░░░░●●●░░░░▓██ ",
" ██▓░░░░░░░░░▼░░░░░░░░░░░░▓██ ",
" ███▓░░░░░ ▀▀▀▀▀ ░░░░░░▓███ ",
" ███▓░░░░░░░░░░░░░░░░░░▓███ ",
" ▀███▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███▀ ",
" ▀▀███████████████▀▀ ",
}
PixelCat contains a cute pixel-art cat using block characters
View Source
var PixelCatLookingUp = []string{
" ▄██▄ ▄██▄ ",
" █████▄ ▄█████ ",
" ███░░██▄ ▄██░░███ ",
" ████░░░██▄ ▄██░░░████ ",
" ▀███░░▒██▄ ▄██▒░░███▀ ",
" ▀████████████████▀ ",
" ▄███████████████████▄ ",
" ██████████████████████████ ",
" ███▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███ ",
" ███▓░░ ▀▀▀ ░░░░░░ ▀▀▀ ░░▓███ ",
" ██▓░░░ ● ░░░░░░░░░ ● ░░░░▓██ ",
" ██▓░░░░░░░░░░░░░░░░░░░░░░▓██ ",
" ██▓░░░░░░░░░▼░░░░░░░░░░░░▓██ ",
" ███▓░░░░░ ▀▀▀▀▀ ░░░░░░▓███ ",
" ███▓░░░░░░░░░░░░░░░░░░▓███ ",
" ▀███▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███▀ ",
" ▀▀███████████████▀▀ ",
}
PixelCatLookingUp contains the cat looking upward for the Stream animation
Functions ¶
func GetMaxFrames ¶
func GetMaxFrames(animType AnimationType) int
GetMaxFrames returns the total number of frames for a given animation type
func RenderAnimation ¶
func RenderAnimation(animType AnimationType, frame, width, height int) string
RenderAnimation renders the appropriate animation based on type and frame
Types ¶
type AnimationType ¶
type AnimationType int
AnimationType represents the type of intro animation to display
const ( // Glitch represents the "Merge Conflict" chromatic aberration animation Glitch AnimationType = iota // Scan represents the "Diff Scan" animation (red to green transition) Scan )
Click to show internal directories.
Click to hide internal directories.