How to use the function in vis-network.js to convert color names to hex values?
https://unpkg.com/vis-network/standalone/umd/vis-network.min.js, How can I use the existing functions or dictionaries in vis-network (dict which named cv in vis-network.min.js) to convert a color name (such as “red”) to a hexadecimal value (#FF0000)?
How to pass the color parameter to the ctxRenderer function of the custom type node of the vis-network?
I want to pass color to the ctxRenderer function so that I can change it dynamically later, but it seems unsuccessful. please have a look at the code below: