add setColor function and defaut parameter to constructor to Curve