Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ofc_bar_sketch.php « php-ofc-library « open-flash-chart « libs - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ce1bcccf8aa3cfbaa91cbe38e1422ac67d8349a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

include_once 'ofc_bar_base.php';

class bar_sketch extends bar_base
{
	/**
	 * @param $colour as string, HEX colour e.g. '#00ff00'
	 * @param $outline_colour as string, HEX colour e.g. '#ff0000'
	 * @param $fun_factor as integer, range 0 to 10. 0,1 and 2 are pretty boring.
	 * 4 to 6 is a bit fun, 7 and above is lots of fun. 
	 */
	function bar_sketch( $colour, $outline_colour, $fun_factor )
	{
		$this->type      = "bar_sketch";
		parent::bar_base();
		
		$this->set_colour( $colour );
		$this->set_outline_colour( $outline_colour );
		$this->offset = $fun_factor;
	}
	
	function set_outline_colour( $outline_colour )
	{
		$tmp = 'outline-colour';
		$this->$tmp = $outline_colour;	
	}
}