1. Try posting in the developer forum, preferably in proper case.
2. The question 'API FOR ADDING COLOUR IS PART' is too vague.
Provide a description of what you are doing and what you have achieved so far and what kind of help is needed in doing exactly what.
3. Here are some direct references to get you started: