mirror of
https://github.com/CHN-beta/ufo.git
synced 2024-10-22 19:58:44 +08:00
use blue color
This commit is contained in:
parent
1d4d021bfc
commit
161c4c861c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user