| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | include_once 'ofc_bar_base.php';
|
|---|
| 4 |
|
|---|
| 5 | class bar_sketch extends bar_base
|
|---|
| 6 | {
|
|---|
| 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.
|
|---|
| 12 | */
|
|---|
| 13 | function bar_sketch( $colour, $outline_colour, $fun_factor )
|
|---|
| 14 | {
|
|---|
| 15 | $this->type = "bar_sketch";
|
|---|
| 16 | parent::bar_base();
|
|---|
| 17 |
|
|---|
| 18 | $this->set_colour( $colour );
|
|---|
| 19 | $this->set_outline_colour( $outline_colour );
|
|---|
| 20 | $this->offset = $fun_factor;
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | function set_outline_colour( $outline_colour )
|
|---|
| 24 | {
|
|---|
| 25 | $tmp = 'outline-colour';
|
|---|
| 26 | $this->$tmp = $outline_colour;
|
|---|
| 27 | }
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.