You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gfx.Color object stores colors internally as 4 floats in a small ctypes array (ctypes.c_float * 4). One reason for doing it this way is that it could be a view on a larger array. I don't think it can be made to work just yet, but with a few changes it should be possible to have something like:
This might be convenient because this is more efficient (and convenient?) way to store colors instead of storing an array of Color objects.
To be clear: probably needs some work in pygfx to make this work. I think its probably a good idea to think about what the ideal API be like from the pov of Fastplotlib and then probably implement that in pygfx.
The text was updated successfully, but these errors were encountered:
The
gfx.Color
object stores colors internally as 4 floats in a small ctypes array (ctypes.c_float * 4
). One reason for doing it this way is that it could be a view on a larger array. I don't think it can be made to work just yet, but with a few changes it should be possible to have something like:This might be convenient because this is more efficient (and convenient?) way to store colors instead of storing an array of
Color
objects.To be clear: probably needs some work in pygfx to make this work. I think its probably a good idea to think about what the ideal API be like from the pov of Fastplotlib and then probably implement that in pygfx.
The text was updated successfully, but these errors were encountered: