update USAGE for new-skool blitter defs

This commit is contained in:
nick black 2020-10-25 19:03:17 -04:00 committed by Nick Black
parent 8b171c215e
commit 5647864745
2 changed files with 10 additions and 11 deletions

View File

@ -2668,18 +2668,17 @@ struct ncplane* ncvisual_render(struct notcurses* nc, struct ncvisual* ncv,
// the return values remain the same as those of ncvisual_decode(). // the return values remain the same as those of ncvisual_decode().
int ncvisual_decode_loop(struct ncvisual* nc); int ncvisual_decode_loop(struct ncvisual* nc);
// each has the empty cell in addition to the product of its dimensions. i.e. // we never blit full blocks, but instead spaces (more efficient) with the
// NCBLIT_1x1 has two states: empty and full block. NCBLIT_1x1x4 has five // background set to the desired foreground.
// states: empty, the three shaded blocks, and the full block.
typedef enum { typedef enum {
NCBLIT_DEFAULT, // let the ncvisual pick NCBLIT_DEFAULT, // let the ncvisual pick
NCBLIT_1x1, // full block █ NCBLIT_1x1, // space, compatible with ASCII
NCBLIT_2x1, // upper half + 1x1 ▀█ NCBLIT_2x1, // halves + 1x1 (space) ▄▀
NCBLIT_1x1x4, // shaded full blocks ▓▒░█ NCBLIT_2x2, // quadrants + 2x1 ▗▐ ▖▀▟▌▙
NCBLIT_2x2, // quadrants + 2x1 ▗▐ ▖▀▟▌▙█ NCBLIT_3x2, // sextants (*NOT* 2x2) 🬀🬁🬂🬃🬄🬅🬆🬇🬈🬉🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝🬞🬟🬠🬡🬢🬣🬤🬥🬦🬧🬨🬩🬪🬫🬬🬭🬮🬯🬰🬱🬲🬳🬴🬵🬶🬷🬸🬹🬺🬻
NCBLIT_4x1, // four vertical levels █▆▄▂ NCBLIT_4x1, // four vertical levels █▆▄▂
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿ NCBLIT_BRAILLE, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿
NCBLIT_8x1, // eight vertical levels █▇▆▅▄▃▂▁ NCBLIT_8x1, // eight vertical levels █▇▆▅▄▃▂▁
NCBLIT_SIXEL, // 6 rows, 1 col (RGB), spotty support among terminals NCBLIT_SIXEL, // 6 rows, 1 col (RGB), spotty support among terminals
} ncblitter_e; } ncblitter_e;

View File

@ -57,7 +57,7 @@ typedef enum {
NCBLIT_DEFAULT, // let the ncvisual pick NCBLIT_DEFAULT, // let the ncvisual pick
NCBLIT_1x1, // space, compatible with ASCII NCBLIT_1x1, // space, compatible with ASCII
NCBLIT_2x1, // halves + 1x1 (space) ▄▀ NCBLIT_2x1, // halves + 1x1 (space) ▄▀
NCBLIT_2x2, // quadrants + 2x1 ▗▐ ▖▀▟▌▙ NCBLIT_2x2, // quadrants + 2x1 ▗▐ ▖▀▟▌▙
NCBLIT_3x2, // sextants (*NOT* 2x2) 🬀🬁🬂🬃🬄🬅🬆🬇🬈🬉🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝🬞🬟🬠🬡🬢🬣🬤🬥🬦🬧🬨🬩🬪🬫🬬🬭🬮🬯🬰🬱🬲🬳🬴🬵🬶🬷🬸🬹🬺🬻 NCBLIT_3x2, // sextants (*NOT* 2x2) 🬀🬁🬂🬃🬄🬅🬆🬇🬈🬉🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝🬞🬟🬠🬡🬢🬣🬤🬥🬦🬧🬨🬩🬪🬫🬬🬭🬮🬯🬰🬱🬲🬳🬴🬵🬶🬷🬸🬹🬺🬻
NCBLIT_4x1, // four vertical levels █▆▄▂ NCBLIT_4x1, // four vertical levels █▆▄▂
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿ NCBLIT_BRAILLE, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿