minor bug fix
[openemr.git] / library / openflashchart / php-ofc-library / ofc_bar_sketch.php
blobce1bcccf8aa3cfbaa91cbe38e1422ac67d8349a9
1 <?php
3 include_once 'ofc_bar_base.php';
5 class bar_sketch extends bar_base
7 /**
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";
16 parent::bar_base();
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;