ofc_area_base.php 533 B

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