ncplot: swap NCPLOT_2x1 and NCPLOT_1x1x4

pull/456/head
nick black 4 years ago
parent 58b7d39b7d
commit 4917603478
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -13,8 +13,8 @@ notcurses_plot - high level widget for plotting
```c
typedef enum {
NCPLOT_1x1, // full block █
NCPLOT_1x1x4, // shaded full blocks █▓▒░
NCPLOT_2x1, // full/lower blocks █▄
NCPLOT_1x1x4, // shaded full blocks █▓▒░
NCPLOT_4x1, // four vert levels █▆▄▂
NCPLOT_8x1, // eight vert levels █▇▆▅▄▃▂▁
} ncgridgeom_e;

@ -2472,8 +2472,8 @@ API int ncmenu_destroy(struct ncmenu* n);
// states: empty, the three shaded blocks, and the full block.
typedef enum {
NCPLOT_1x1, // full block █
NCPLOT_1x1x4, // shaded full blocks █▓▒░
NCPLOT_2x1, // full/(upper|left) blocks █▀
NCPLOT_1x1x4, // shaded full blocks █▓▒░
//NCPLOT_2x2, // quadrants ▖▘▝▗ ▛ ▜ ▟ ▙ ▘▗ ▖▝
NCPLOT_4x1, // four vert/horz levels █▆▄▂ / ▎▌▊█
NCPLOT_8x1, // eight vert/horz levels █▇▆▅▄▃▂▁ / ▏▎▍▌▋▊▉█

@ -412,8 +412,8 @@ void ncplane_translate(const struct ncplane* src, const struct ncplane* dst, int
bool ncplane_translate_abs(const struct ncplane* n, int* y, int* x);
typedef enum {
NCPLOT_1x1, // full block
NCPLOT_1x1x4, // shaded full blocks
NCPLOT_2x1, // full/(upper|left) blocks
NCPLOT_1x1x4, // shaded full blocks
NCPLOT_4x1, // four vert/horz levels /
NCPLOT_8x1, // eight vert/horz levels /
} ncgridgeom_e;

@ -5,8 +5,8 @@ static const struct {
const wchar_t* egcs;
} geomdata[] = {
{ .geom = NCPLOT_1x1, .egcs = L"", },
{ .geom = NCPLOT_1x1x4, .egcs = L"▒░▓█", },
{ .geom = NCPLOT_2x1, .egcs = L"▄█", },
{ .geom = NCPLOT_1x1x4, .egcs = L"▒░▓█", },
{ .geom = NCPLOT_4x1, .egcs = L"▂▄▆█", },
{ .geom = NCPLOT_8x1, .egcs = L"▁▂▃▄▅▆▇█", },
};

Loading…
Cancel
Save