function rtf::addColour in Bibliography Module 6
Same name and namespace in other branches
- 6.2 modules/rtf/rtf_export.inc \rtf::addColour()
- 7 modules/rtf/rtf_export.inc \rtf::addColour()
- 7.2 modules/rtf/rtf_export.inc \rtf::addColour()
File
- ./
class_rtf.php, line 146
Class
Code
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"],
);
}