Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * inherits from line
|
---|
5 | */
|
---|
6 | class area extends line
|
---|
7 | {
|
---|
8 | function area()
|
---|
9 | {
|
---|
10 | $this->type = "area";
|
---|
11 | }
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * the fill colour
|
---|
15 | */
|
---|
16 | function set_fill_colour( $colour )
|
---|
17 | {
|
---|
18 | $this->fill = $colour;
|
---|
19 | }
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * sugar: see set_fill_colour
|
---|
23 | */
|
---|
24 | function fill_colour( $colour )
|
---|
25 | {
|
---|
26 | $this->set_fill_colour( $colour );
|
---|
27 | return $this;
|
---|
28 | }
|
---|
29 |
|
---|
30 | function set_fill_alpha( $alpha )
|
---|
31 | {
|
---|
32 | $tmp = "fill-alpha";
|
---|
33 | $this->$tmp = $alpha;
|
---|
34 | }
|
---|
35 |
|
---|
36 | function set_loop()
|
---|
37 | {
|
---|
38 | $this->loop = true;
|
---|
39 | }
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.