gradient PoC: sleep between flip #921

pull/932/head
nick black 4 years ago
parent d282682564
commit bdea9bc9c8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -853,11 +853,7 @@ notcurses_rasterize(notcurses* nc, const struct crender* rvec, FILE* out){
nc->rstate.defaultelidable = false;
nc->rstate.bgpalelidable = false;
}
/*if(cell_simple_p(srccell)){
fprintf(stderr, "RAST %u [%c] to %d/%d\n", srccell->gcluster, srccell->gcluster, y, x);
}else{
fprintf(stderr, "RAST %u [%s] to %d/%d\n", srccell->gcluster, egcpool_extended_gcluster(&nc->pool, srccell), y, x);
}*/
//fprintf(stderr, "RAST %08x [%s] to %d/%d %016lx\n", srccell->gcluster, pool_extended_gcluster(&nc->pool, srccell), y, x, srccell->channels);
if(term_putc(out, &nc->pool, srccell) == 0){
++nc->rstate.x;
if(cell_wide_left_p(srccell)){

@ -30,13 +30,14 @@ gradStriations(struct notcurses* nc){
uint64_t ur = CHANNELS_RGB_INITIALIZER(0, 0xff, 0xff, 0xff, 0, 0);
uint64_t ll = CHANNELS_RGB_INITIALIZER(0xff, 0, 0, 0, 0xff, 0xff);
uint64_t lr = CHANNELS_RGB_INITIALIZER(0xff, 0xff, 0xff, 0, 0, 0);
if(ncplane_gradient(stdn, "", NCSTYLE_NONE, ul, ur, ll, lr, dimy - 1, dimx - 1) <= 0){
if(ncplane_gradient(stdn, "", NCSTYLE_NONE, ul, ur, ll, lr, dimy - 1, dimx - 1) <= 0){
return -1;
}
if(notcurses_render(nc)){
return -1;
}
if(ncplane_gradient(stdn, "", NCSTYLE_NONE, ul, ur, ll, lr, dimy - 1, dimx - 1) <= 0){
sleep(3);
if(ncplane_gradient(stdn, "", NCSTYLE_NONE, ul, ur, ll, lr, dimy - 1, dimx - 1) <= 0){
return -1;
}
if(notcurses_render(nc)){

Loading…
Cancel
Save