When using plotting packages in julia, colors can be passed using a symbol of their name e.g. :red
.
After searching in Makie
’s source code, I could not find where the conversion from Symbol
to colorant was done.
At the moment, it feels like the most direct way to do that is Colors.color_names[String(color_symbol)]
, is it ? It feels quite awkward to do it this way, I would have expected that a Color(color_symbol::Symbol)
existed.