-
-
Notifications
You must be signed in to change notification settings - Fork 490
Commit 053cc5c
committed
Graph meter coloring (with GraphData structure rework)
Rewrite the entire graph meter drawing code to support color graph
drawing in addition to the dynamic scaling (both can work together
because of the new GraphData structure design).
The colors of a graph are based on the percentages of item values of
the meter. The rounding differences of each terminal character are
addressed through the different numbers of braille dots.
Due to low resolution of the character terminal, the rasterized colors
may not look nice, but better than nothing. :)
The new GraphData structure design has two technical limitations:
* The height of a graph meter now has a limit of 8191 (terminal rows).
* If dynamic scaling is used, the "total" value or scale of a graph now
has to align to a power of 2.
The code is designed with the anticipation that the graph height may
change at runtime. No UI or option has been implemented for that yet.
Signed-off-by: Kang-Che Sung <[email protected]>1 parent ce063bb commit 053cc5cCopy full SHA for 053cc5c
0 commit comments