Here is the color we want to paint: (R,G,B)
A simple way is to draw your image in black (0,0,0,1), then add this
Code: Select all
ColorMatrix4=R/255;G/255;B/255;1;0
If your image have some semitranslucent parts, say (0,0,0,0.2), you want (R,G,B,0.2)
but with
Code: Select all
ColorMatrix4=R/255;G/255;B/255;1;0
Lets redraw your semitranslucent parts to full white (1,1,1,1), then do a little math and apply
Code: Select all
ColorMatrix1=0;0;0;-0.2666;0
ColorMatrix2=0;0;0;-0.2666;0
ColorMatrix3=0;0;0;-0.2666;0
ColorMatrix4=R/255;G/255;B/255;1;0
with this you can have both color & transparency costomized at the same time, have some try