public function rtf::addColour in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/rtf/rtf_export.inc \rtf::addColour()
- 6 class_rtf.php \rtf::addColour()
- 7.2 modules/rtf/rtf_export.inc \rtf::addColour()
File
- modules/
rtf/ rtf_export.inc, line 186
Class
Code
public function addColour($hexcode) {
// Get the RGB values.
$this
->hex2rgb($hexcode);
// Register in the colour table array.
$this->colour_table[] = array(
"red" => $this->colour_rgb["red"],
"green" => $this->colour_rgb["green"],
"blue" => $this->colour_rgb["blue"],
);
}