/**
  * @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 __construct($colour, $outline_colour, $fun_factor)
 {
     $this->type = "bar_sketch";
     parent::__construct();
     $this->set_colour($colour);
     $this->set_outline_colour($outline_colour);
     $this->offset = $fun_factor;
 }
Example #2
0
 /**
  * @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. 
  */
 public 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;
 }
Example #3
0
	public function __construct($colour, $negative_colour=null)
	{
		$this->type      = "candle";
		parent::bar_base();
		
		$this->set_colour( $colour );
		if(!is_null($negative_colour))
			$this->{'negative-colour'} = $negative_colour;
	}
Example #4
0
 public function candle($colour, $negative_colour = null)
 {
     $this->type = 'candle';
     parent::bar_base();
     $this->set_colour($colour);
     if (!is_null($negative_colour)) {
         $this->{'negative-colour'} = $negative_colour;
     }
 }
Example #5
0
 function bar_filled($colour = null, $outline_colour = null)
 {
     $this->type = "bar_filled";
     parent::bar_base();
     if (isset($colour)) {
         $this->set_colour($colour);
     }
     if (isset($outline_colour)) {
         $this->set_outline_colour($outline_colour);
     }
 }
 function __construct($colour = null, $outline_colour = null)
 {
     $this->type = "bar_filled";
     parent::__construct();
     if (isset($colour)) {
         $this->set_colour($colour);
     }
     if (isset($outline_colour)) {
         $this->set_outline_colour($outline_colour);
     }
 }
Example #7
0
	public function __construct()
	{
		$this->type      = "bar_stack";
		parent::bar_base();
	}
 function bar_glass()
 {
     $this->type = "bar_glass";
     parent::bar_base();
 }
Example #9
0
 function bar()
 {
     $this->type = "bar";
     parent::bar_base();
 }
Example #10
0
 function bar_stack()
 {
     $this->type = "bar_stack";
     parent::bar_base();
 }
Example #11
0
 public function bar()
 {
     $this->type = 'bar';
     parent::bar_base();
 }
 function __construct()
 {
     $this->type = "bar_stack";
     parent::__construct();
 }
Example #13
0
 public function bar_stack()
 {
     $this->type = 'bar_stack';
     parent::bar_base();
 }
Example #14
0
 function candle($colour)
 {
     $this->type = "candle";
     parent::bar_base();
     $this->set_colour($colour);
 }
Example #15
0
 public function bar_3d()
 {
     $this->type = "bar_3d";
     parent::bar_base();
 }