3 include_once 'ofc_bar_base.php';
5 class bar_sketch
extends bar_base
8 * @param $colour as string, HEX colour e.g. '#00ff00'
9 * @param $outline_colour as string, HEX colour e.g. '#ff0000'
10 * @param $fun_factor as integer, range 0 to 10. 0,1 and 2 are pretty boring.
11 * 4 to 6 is a bit fun, 7 and above is lots of fun.
13 function bar_sketch( $colour, $outline_colour, $fun_factor )
15 $this->type
= "bar_sketch";
18 $this->set_colour( $colour );
19 $this->set_outline_colour( $outline_colour );
20 $this->offset
= $fun_factor;
23 function set_outline_colour( $outline_colour )
25 $tmp = 'outline-colour';
26 $this->$tmp = $outline_colour;