support drawing curve