Dear all,
I am having some trouble using View.ColorTable during post-processing. My
understanding is that View.ColorTable is a list of 256 colors mapped
linearly from View.Min to View.Max. Is that correct? How to modify a
single entry in View.ColorTable? I am trying to modified it in a loop like:
For i In {0:255}
frac = i / 255.0;
s = View[2].Min * (1-frac) + View[2].Max * frac;
f = (s - min_v) / (max_v - min_v);
f = (0 > f) ? 0 : f;
f = (1 < f) ? 1 : f;
View[2].ColorTable[i] = {f*255, (1-f)*255,
0};
EndFor
and it gives syntax error for using "[". Thanks a lot!
James
_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh