I am making a canvas gauge plugin and I need to convert css color codes like 'pink' and 'orange' into RGB format.
I thought of setting some element to background: pink;
and the getting that color back with $('el').css('background');
like this but I don't know if that would always return what i want and it seems weird anyway.
I am hoping there is some built in window method or something that can do this conversion for me without me having to include a big map-object for all the codes.