function curl draw.