mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
gradient PoC: sleep between flip #921
This commit is contained in:
parent
d282682564
commit
bdea9bc9c8
@ -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…
x
Reference in New Issue
Block a user