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)
















