intro

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
	" ██████╗ ██╗███████╗███████╗",
	" ██╔══██╗██║██╔════╝██╔════╝",
	" ██║  ██║██║█████╗  █████╗  ",
	" ██║  ██║██║██╔══╝  ██╔══╝  ",
	" ██████╔╝██║██║     ██║     ",
	" ╚═════╝ ╚═╝╚═╝     ╚═╝     ",
}

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL