We are going to start with creating the Image layers which will contain all the colored areas.
A tip is to create one layer per element that is intended to be colorized (T-shirt, trousers, shoes, skin, etc...). For more convenience, I've gathered several elements which will have the same color on one layer (the shoes, the jacket, the belt and the glove are on the same layer) which is easy to do since those elements are not too close from each other.
You can lock the layer containing the outlines to avoid to modify it. You just have to click on the little lock button which is near the corresponding layer from the Timeline.
I chose to work on a grey background with checks in order to give the colors a better visibility.
The result and the colored areas look similar to what we expected at this step. Here follows the result for the Skin layer:
To fix them, you must use the Range setting available in the Floodfill tool options panel. Increasing the value of the Range setting allow to fill the pixels which are only semi-transparent. The tolerance threshold of the outlines is bigger.
You can try to find them all to fill them but it can take a long time and being very tedious!
Fortunately, TVPaint Animation does the trick for you thanks to the GapCloser setting which will allow us not to take care of this gaps and to save substantial time!
When you set this parameter to 1, the 1-pixel wide gaps will be automatically detected and they won't be filled:
Then you'll obtain the following result:
However, be sure that the GapCloser option is enabled only when it's required.
To give you an example, set the GapCloser to 1 and let's fill the trousers. That's defintely not what we are looking for! So you have to be careful and to disable this option (set it to 0) when it's not necessary.
Let's go on with the mask (that we call Stencil in TVPaint Animation). Using the masks will simplify the task. This option is very useful since it allows us not to put the colors out. Let's do for example some shadows on the trousers. To enable the Stencil, you just have to click on the box which is on the left of the layer name in the Timeline (see picture below). The box get highlighted when the Stencil is enabled. We can now do the shadows without risking to put colors anywhere!
With and Without a mask
Don't forget to disable the option when you will do the same for the other parts of the character and to enable it again on the correct layer.
Another solution would be to use the Preserve transparency option. You just have to click on its icon which is the main tool bar. Once it's enabled, you cannot apply colors on transparent pixels anymore. The result will be the same as i we used the Stencils.
Note that you can do the same for the outlines since some artists would prefer to have colored outlines and not black ones. For this drawing, I decided to keep the outlines black.
Here is what i finally got when working on the shadows: