Help for this page

Select Code to Download


  1. or download this
    my $point = new Point();
    $point->set_X( 3 );
    ...
    $end_point = $point->copy();
    
    $image->draw_line_from_to( $start_point, $end_point, BLACK );
    
  2. or download this
    my $point = new Point(3, 4);
    ...
    ...
    
    my $end_point = $point;
    $image->line( $start_point, $end_point, BLACK );