added function to return centre of rect.
investigating how to draw gradient along arc.