Translate a Color object to Uint32 value, which can be used for per-data point coloring with LightningChart JS.
// Example constcolorUint32 = uint32ColorFromObject(ColorRGBA(255, 0, 0))
Note, that Color objects are considerably heavy immutable classes.
For this reason, it is strongly suggested to avoid using them in large numbers (~1000+).
Instead, you should work directly with uint32 numbers, or use other methods that avoid Color objects, like:
Translate a Color object to Uint32 value, which can be used for per-data point coloring with LightningChart JS.
Note, that
Color
objects are considerably heavy immutable classes. For this reason, it is strongly suggested to avoid using them in large numbers (~1000+).Instead, you should work directly with uint32 numbers, or use other methods that avoid
Color
objects, like:Returns
Number that represents a Uint32 rgba color