6 *@param $x as number. Start x position
7 *@param $y as number. Start y position
8 *@param $a as number. End x position
9 *@param $b as number. End y position
10 *@param $colour as string.
11 *@param $barb_length as number. Length of the barbs in pixels.
12 *@param $stroke as number. Width of the arrow in pixels.
14 function ofc_arrow($x, $y, $a, $b, $colour, $barb_length=10, $stroke=1)
16 $this->type
= "arrow";
17 $this->start
= array("x"=>$x, "y"=>$y);
18 $this->end
= array("x"=>$a, "y"=>$b);
19 $this->colour($colour);
20 $this->{"barb-length"} = $barb_length;
21 $this->{"stroke"} = $stroke;
24 function colour( $colour )
26 $this->colour
= $colour;