use rects as arguments for draw curve