Skip to content

OnlyXuul/progressbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fancy Progress Bar

Created mostly for geeky funs.

Depends on afmt package

See test/test.odin for example tests

Basic Usage Simulation Example:
bar := pb.create_bar(.pacman_ghosts, "Bar Test:", 50)
defer pb.delete_progress_bar(&bar)

// Simulate some process that loops and takes time and provides updates
for percent in 0..=100 {
pb.progress_bar(&bar, percent)
time.sleep(time.Second / 25) // Simulation. Remove this when using for real.
// test some condition that breaks loop
}
pb.progress_bar_exit() // Always use this when done just in case you are breaking out of progress loop

I'm not a particularly good artist. Some of these could have used better color choices. They mostly serve as examples of what is possible if you wish to geek out and attempt to create your own.

Basic Bars that do not allocate (the rest do)
Alt text

Arrow
Alt text

Ball
Alt text

Random Bits
Alt text

Random Bits with Random Color
Alt text

Black Flag
Alt text

Chain
Alt text

Deathstar shoots Alderaan and it's moon(s)
Alt text

Dracula
Alt text

Kayak
Alt text

Love
Alt text

Mjölnir
Alt text

Mouse
Alt text

Pacman
Alt text

Pacman with Ghosts
Alt text

Queens March
Alt text

Trout
Alt text

About

Fancy Progress Bar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages