mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-04 21:26:17 +00:00
rogueviz::som::tests:: an option to disable vertex coloring
This commit is contained in:
parent
6291da56c4
commit
dcffdbbca5
@ -148,12 +148,14 @@ void create_subdata(int qty) {
|
|||||||
edge_data = false;
|
edge_data = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool colorless = false;
|
||||||
|
|
||||||
void create_edgedata() {
|
void create_edgedata() {
|
||||||
if(edge_data) return;
|
if(edge_data) return;
|
||||||
edge_data = true;
|
edge_data = true;
|
||||||
create_data();
|
create_data();
|
||||||
|
|
||||||
for(int i=0; i<samples; i++) {
|
if(!colorless) for(int i=0; i<samples; i++) {
|
||||||
if(is_special[i])
|
if(is_special[i])
|
||||||
vdata[i].cp.color1 = gradient(0xC0C000FF, 0xC00000FF, 0, ctrdist[i], ctrdist_max);
|
vdata[i].cp.color1 = gradient(0xC0C000FF, 0xC00000FF, 0, ctrdist[i], ctrdist_max);
|
||||||
else
|
else
|
||||||
@ -1349,6 +1351,7 @@ auto khook = arg::add3("-kst-keys", [] { rv_hook(hooks_handleKey, 150, kst_key);
|
|||||||
param_i(ks_nonadj, "ks_nonadj", 0);
|
param_i(ks_nonadj, "ks_nonadj", 0);
|
||||||
param_i(max_distance, "ks_max");
|
param_i(max_distance, "ks_max");
|
||||||
})
|
})
|
||||||
|
+ arg::add3("-kst-colorless", [] { colorless = true; })
|
||||||
+ addHook(hooks_markers, 100, [] () {
|
+ addHook(hooks_markers, 100, [] () {
|
||||||
int N = isize(net);
|
int N = isize(net);
|
||||||
bool multidraw = quotient;
|
bool multidraw = quotient;
|
||||||
|
Loading…
Reference in New Issue
Block a user