my ($x1,$y1); my $r = 50; # radius my @new_coords = ($x1,$x2,$x1-$r,$x2+$r,$x1,$x2+(2*$r),$x1+$r,$x2+$r,$x1,$x2+8); $id = $can->createLine(@new_coords);