Help for this page

Select Code to Download


  1. or download this
             $canvas->createRectangle(
                 $i * $ps, $j * $ps,
    ...
                 -outline => $c,
                 -tags    => ['bg']);
          }
    
  2. or download this
    sub erase{
        $canvas->delete('bg');
    }
    
  3. or download this
           $canvas->createLine($start_x, $start_y, $x1, $y1,
                               -width => 2,
    ...
    # and after drawing the new background:
    
       $canvas->raise('fg', 'bg');