Paintbrush and arc calculation