added draw_center_text, added return val to set_color_by_percent
draw_center_text takes in color parameter
optimizations.