ofc_bar_sketch.php 728 B

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