Ashok | making use of the Painter class. | Added rgb function for double values.