add_mesh per-face coloring#984
Conversation
When not uniform, the class will expect colors to be as large as either the positions (per-vertex coloring with intermediate interpolation) or the indices (per-face coloring)
|
I also suggest adding a comment to specify that the colors must be in linear RGB mode, NOT sRGB which is what we get from popular colormap sources such as the ones in matplotlib. I was pulling my hairs today trying to figure out why the same thing on matplotlib and fastplotlib was different. |
|
@kushalkolar Could we take a look into this? I've been using it for a few months without issue. |
pygfx uses sRGB by default, can you play with |
this is what i do. I set once. Then change that colors attribute with |



I didn't go further with creating a new parameter because this was much simpler.