|
|
|
@ -443,7 +443,7 @@ int witherworm_demo(struct notcurses* nc){
|
|
|
|
|
NULL
|
|
|
|
|
};
|
|
|
|
|
const char** s;
|
|
|
|
|
const int steps[] = { 0, 0x10040, 0x100, 0x100, 0x10001, };
|
|
|
|
|
const int steps[] = { 0, 0x10040, 0x20110, 0x120, 0x12020, };
|
|
|
|
|
const int starts[] = { 0, 0x10101, 0x004000, 0x000040, 0x400040, };
|
|
|
|
|
|
|
|
|
|
struct ncplane* n = notcurses_stdplane(nc);
|
|
|
|
@ -472,9 +472,8 @@ int witherworm_demo(struct notcurses* nc){
|
|
|
|
|
y = 0;
|
|
|
|
|
x = 0;
|
|
|
|
|
ncplane_set_bg_rgb(n, 20, 20, 20);
|
|
|
|
|
do{ // we fill up the entire screen, however large, walking our strtable
|
|
|
|
|
s = strs;
|
|
|
|
|
for(s = strs ; *s ; ++s){
|
|
|
|
|
do{ // we fill up the screen, however large, bouncing around our strtable
|
|
|
|
|
s = strs + random() % ((sizeof(strs) / sizeof(*strs)) - 1);
|
|
|
|
|
size_t idx = 0;
|
|
|
|
|
ncplane_cursor_yx(n, &y, &x);
|
|
|
|
|
// fprintf(stderr, "%02d %s\n", y, *s);
|
|
|
|
@ -514,7 +513,6 @@ int witherworm_demo(struct notcurses* nc){
|
|
|
|
|
++egcs_out;
|
|
|
|
|
}
|
|
|
|
|
rgb += step;
|
|
|
|
|
}
|
|
|
|
|
}while(y < maxy && x < maxx);
|
|
|
|
|
struct ncplane* math = mathplane(nc);
|
|
|
|
|
if(math == NULL){
|
|
|
|
|