Change colour of picture shape on a png

Hi there - I have an audio wave showing on a transparent background.
The problem is that the color of the wave is horrible…

what’s the best way to change just the wave colour without losing the transparent background?


Can be used to quickly recolor Xojo pictures, you pass in 3 arrays from 0~255 specifying how the color values should be shifted.

I assume this is a static picture?
If so, create a RGBSurface, scan it looking for the color you wish to change, and replace it with the color you want

if rs.pixel(x,y)=&c012345 then rs.pixel(x,y)=&cff0000

Look in the Lang Ref for more details.