use blue color

This commit is contained in:
陈浩南 2023-10-10 17:12:59 +08:00
parent 1d4d021bfc
commit 161c4c861c

View File

@ -248,13 +248,13 @@ namespace ufo
a[i][j] = values[j][i] * 100 * 255; a[i][j] = values[j][i] * 100 * 255;
if (a[i][j] > 255) if (a[i][j] > 255)
a[i][j] = 255; a[i][j] = 255;
r[i][j] = 255; r[i][j] = 255 - values[j][i] * 2 * 255;
if (r[i][j] < 0)
r[i][j] = 0;
g[i][j] = 255 - values[j][i] * 2 * 255; g[i][j] = 255 - values[j][i] * 2 * 255;
if (g[i][j] < 0) if (g[i][j] < 0)
g[i][j] = 0; g[i][j] = 0;
b[i][j] = 255 - values[j][i] * 2 * 255; b[i][j] = 255;
if (b[i][j] < 0)
b[i][j] = 0;
} }
auto f = matplot::figure<matplot::backend::gnuplot>(true); auto f = matplot::figure<matplot::backend::gnuplot>(true);
auto ax = f->current_axes(); auto ax = f->current_axes();