I'm working with a LaTeX template that uses Font Awesome 5 to render icons. Unfortunately, not all brand icons I would like exist in the Font Awesome set.
I have this PNG file:
And I am rendering it with this code:
\pointskill{\includegraphics[scale=0.015]{kotlin}}{Kotlin}{4}
\pointskill{\faRust}{Rust}{1} % Including this for comparison
Which results in this:
My goal is to change the colour of the icon in a generic way. That is, it should match the iconcolor defined here:
\colorlet{iconcolor}{maincolor!90}
Where maincolor is a variable that could be set to any color. By default it is:
\definecolor{cvblue}{HTML}{0E5484}
\colorlet{maincolor}{cvblue}
At the moment, the icon is rendered in the \pointskill command with \cvicon.
\newcommand{\cvicon}[1]{\makebox[0.8em]{\color{iconcolor} #1}}
I have tried to do this using decodearray, as per [this] (https://tex.stackexchange.com/a/150219/305810) answer, but I think I don't understand how to use it, as the image no longer renders when I use decodearray.
To summarise, how can I change the black colour in a PNG image, to match a variable colour?

