Closed neeasade closed 3 years ago
I propose an alternative approach, extract the code to a draw_slant
and draw the whole slant in one go (using the poly functions xcb has), we don't really care about drawing glyphs over slants (nice name for a band though).
I had not considered that (I'm not xcb savvy) but will look into and revise.
Initially was just going to package on my fork as this is a vanity feature, but figured would submit for consideration/revise if needed for that. This adds a few flags for making slants, demonstrated in
slant_demo.sh
-- for example%{E2}
would result in an upper left slant across the length of 2 characters. Slant colors reference current FG and BG.Results vary a bit, you can tweak the values
Len
andgeom
in the example script, which as is looks like: