mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
notcurses-info: colorize box block
This commit is contained in:
parent
e915724b9f
commit
88cccb4d2a
@ -152,9 +152,9 @@ unicodedumper(struct ncplane* n, tinfo* ti, const char* indent){
|
|||||||
lr = CHANNEL_RGB_INITIALIZER(0x7B, 0x68, 0xEE);
|
lr = CHANNEL_RGB_INITIALIZER(0x7B, 0x68, 0xEE);
|
||||||
ul = CHANNEL_RGB_INITIALIZER(0x19, 0x19, 0x70);
|
ul = CHANNEL_RGB_INITIALIZER(0x19, 0x19, 0x70);
|
||||||
ncplane_stain(n, y - 9, 57, lr, ul, lr, ul);
|
ncplane_stain(n, y - 9, 57, lr, ul, lr, ul);
|
||||||
// the quadrants
|
// the boxes + quadrants
|
||||||
ncplane_cursor_move_yx(n, y - 10, 0);
|
ncplane_cursor_move_yx(n, y - 10, 0);
|
||||||
ncplane_stain(n, y - 9, 65, lr, ul, lr, ul);
|
ncplane_stain(n, y - 7, 70, lr, ul, lr, ul);
|
||||||
// the vertical eighths
|
// the vertical eighths
|
||||||
ncplane_cursor_move_yx(n, y - 2, 55);
|
ncplane_cursor_move_yx(n, y - 2, 55);
|
||||||
ul = CHANNEL_RGB_INITIALIZER(0x60, 0x7d, 0x3b);
|
ul = CHANNEL_RGB_INITIALIZER(0x60, 0x7d, 0x3b);
|
||||||
|
Loading…
Reference in New Issue
Block a user