Adding object to calculate colours from pecentages