USAGE: pixel -> ncpixel

This commit is contained in:
nick black 2020-06-06 23:39:52 -04:00
parent 465f4694b8
commit 71f6b7b02e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 5 additions and 4 deletions

View File

@ -2647,7 +2647,7 @@ It is sometimes desirable to modify the pixels of an `ncvisual` directly.
```c
static inline int
pixel_set_r(uint32_t* pixel, int r){
ncpixel_set_r(uint32_t* pixel, int r){
if(r > 255 || r < 0){
return -1;
}
@ -2656,7 +2656,7 @@ pixel_set_r(uint32_t* pixel, int r){
}
static inline int
pixel_set_g(uint32_t* pixel, int g){
ncpixel_set_g(uint32_t* pixel, int g){
if(g > 255 || g < 0){
return -1;
}
@ -2665,7 +2665,7 @@ pixel_set_g(uint32_t* pixel, int g){
}
static inline int
pixel_set_b(uint32_t* pixel, int b){
ncpixel_set_b(uint32_t* pixel, int b){
if(b > 255 || b < 0){
return -1;
}
@ -2675,7 +2675,7 @@ pixel_set_b(uint32_t* pixel, int b){
// set the RGB values of an RGB pixel
static inline int
pixel_set_rgb(uint32_t* pixel, int r, int g, int b){
ncpixel_set_rgb(uint32_t* pixel, int r, int g, int b){
if(pixel_set_r(pixel, r) || pixel_set_g(pixel, g) || pixel_set_b(pixel, b)){
return -1;
}

View File

@ -49,6 +49,7 @@ videothread(void* vnc){
struct timespec fade;
timespec_mul(&demodelay, 2, &fade);
demo_render(nc);
// vopts carries through 'changes.jpg', sitting above the standard plane
ncplane_fadeout(vopts.n, &fade, demo_fader, NULL);
ncplane_destroy(vopts.n);
struct ncplane* apiap = ncplane_new(nc, 1, cols, rows - 1, 0, NULL);