mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
demo: push delaymult through to ncvisuals
This commit is contained in:
parent
0f435240d6
commit
b2dcc7cdf2
@ -44,7 +44,7 @@ fadethread(void* vnc){
|
|||||||
ncplane_putstr_aligned(apiap, 0, NCALIGN_CENTER,
|
ncplane_putstr_aligned(apiap, 0, NCALIGN_CENTER,
|
||||||
"Apia 🡺 Atlanta. Samoa, tula'i ma sisi ia lau fu'a, lou pale lea!");
|
"Apia 🡺 Atlanta. Samoa, tula'i ma sisi ia lau fu'a, lou pale lea!");
|
||||||
int three = 3;
|
int three = 3;
|
||||||
ncvisual_stream(nc, ncv, &averr, 1, perframe, &three);
|
ncvisual_stream(nc, ncv, &averr, delaymultiplier, perframe, &three);
|
||||||
ncvisual_destroy(ncv);
|
ncvisual_destroy(ncv);
|
||||||
ncplane_erase(ncp);
|
ncplane_erase(ncp);
|
||||||
fade.tv_sec = 2;
|
fade.tv_sec = 2;
|
||||||
|
@ -29,7 +29,7 @@ view_video_demo(struct notcurses* nc){
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
free(fm6);
|
free(fm6);
|
||||||
int ret = ncvisual_stream(nc, ncv, &averr, 2.0/3.0, watch_for_keystroke, NULL);
|
int ret = ncvisual_stream(nc, ncv, &averr, 2.0/3.0 * delaymultiplier, watch_for_keystroke, NULL);
|
||||||
ncvisual_destroy(ncv);
|
ncvisual_destroy(ncv);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ int xray_demo(struct notcurses* nc){
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
struct ncplane* newpanel = NULL;
|
struct ncplane* newpanel = NULL;
|
||||||
int ret = ncvisual_stream(nc, ncv, &averr, 0.5, perframecb, &newpanel);
|
int ret = ncvisual_stream(nc, ncv, &averr, 0.5 * delaymultiplier, perframecb, &newpanel);
|
||||||
ncvisual_destroy(ncv);
|
ncvisual_destroy(ncv);
|
||||||
ncplane_destroy(n);
|
ncplane_destroy(n);
|
||||||
ncplane_destroy(newpanel);
|
ncplane_destroy(newpanel);
|
||||||
|
Loading…
Reference in New Issue
Block a user