update logo to notcurses II xray #1144

pull/1146/head
nick black 4 years ago
parent 4655c9dd13
commit 2e78ae1c5e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 37 KiB

@ -51,6 +51,8 @@ char32_t demo_getc(struct notcurses* nc, const struct timespec* ts, ncinput* ni)
struct timespec abstime;
// yes, i'd like CLOCK_MONOTONIC too, but pthread_cond_timedwait() is based off
// of crappy CLOCK_REALTIME :/
// abstime shouldn't be further out than our maximum sleep time -- this can
// lead to 0 frames output during the wait (happening now with zoo FIXME)
if(ts){
clock_gettime(CLOCK_REALTIME, &now);
ns = timespec_to_ns(&now) + timespec_to_ns(ts);

@ -63,11 +63,11 @@ perframecb(struct ncvisual* ncv __attribute__ ((unused)),
const struct timespec* tspec, void* vnewplane){
struct notcurses* nc = ncplane_notcurses(vopts->n);
static int frameno = 0;
int y, x;
int x;
struct ncplane* n = vnewplane;
assert(n);
ncplane_yx(n, &y, &x);
ncplane_move_yx(n, y, x - 1);
ncplane_yx(n, NULL, &x);
ncplane_move_yx(n, 1, x - 1);
++frameno;
DEMO_RENDER(nc);
clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, tspec, NULL);

Loading…
Cancel
Save