Closes #44. I have implemented @0Karakurt0 suggestion which doesn't provide a rotation option but changes the orientation of the bar when the width of the bar is greater than its height.
Example:
$ tail -f $SWAYSOCK.wob | wob -W 64 -H 256
Implementation
In the wob_draw_percentage function, I wrapped the existing logic for drawing horizontal colored bar in an if condition and added a new branch for rendering the bar vertically. The logic for drawing the bar vertically is a bit different: I used a for loop instead of memcpy. Not sure about the performance implications of this.
Feature
Closes #44. I have implemented @0Karakurt0 suggestion which doesn't provide a rotation option but changes the orientation of the bar when the width of the bar is greater than its height.
Example:
Implementation
In the
wob_draw_percentage
function, I wrapped the existing logic for drawing horizontal colored bar in an if condition and added a new branch for rendering the bar vertically. The logic for drawing the bar vertically is a bit different: I used a for loop instead of memcpy. Not sure about the performance implications of this.