my $circle2=$self->{SVG}->circle ( cx => $points_x[$_], cy => $points_y[$_], r => 10, 'fill' => "white", 'stroke' => "rgb(".$colors{N0}.")", 'stroke-width' => "1pt", 'fill-opacity' => "0", 'stroke-opacity' => "0", ); $circle2->animate ( 'attributeName'=>"r", 'begin'=>"mouseover", 'end'=>"mouseout", 'from'=>10, 'to'=>30, # 'values'=>"30", 'dur'=>"2s", # 'repeatDur'=>"freeze" 'restart'=>"whenNotActive" ); $circle2->animate ( 'attributeName'=>"fill-opacity", 'begin'=>"mouseover", 'end'=>"mouseout", 'from'=>0, 'to'=>0.5, # 'values'=>"30", 'dur'=>"2s", # 'repeatDur'=>"freeze" 'restart'=>"whenNotActive" ); $circle2->animate ( 'attributeName'=>"stroke-opacity", 'begin'=>"mouseover", 'end'=>"mouseout", 'from'=>0, 'to'=>0.9, # 'values'=>"30", 'dur'=>"2s", # 'repeatDur'=>"freeze" 'restart'=>"whenNotActive" ); }
To install SVGraph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVGraph
CPAN shell
perl -MCPAN -e shell install SVGraph
For more information on module installation, please visit the detailed CPAN module installation guide.