pixelplots: color according to position #1382

pull/2091/head
nick black 3 years ago committed by nick black
parent af5a359605
commit 01f64c1f2f

@ -165,7 +165,7 @@ int redraw_pixelplot_##T(nc##X##plot* ncp){ \
for(int xx = 0 ; xx < scale ; ++xx){ \
int poff = x * scale + xx + ((y * states + yy) * dimx * scale); \
calc_gradient_channels(&channels, ncp->plot.minchannels, ncp->plot.minchannels, \
ncp->plot.maxchannels, ncp->plot.maxchannels, y, x, dimy, dimx); \
ncp->plot.maxchannels, ncp->plot.maxchannels, y * states + yy, x, dimy * states, dimx); \
uint32_t color = ncchannels_fg_rgb(channels); \
ncpixel_set_a(&color, 0xff); \
pixels[poff] = color; \

Loading…
Cancel
Save