You are here

function rtf::addColour in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/rtf/rtf_export.inc \rtf::addColour()
  2. 7 modules/rtf/rtf_export.inc \rtf::addColour()
  3. 7.2 modules/rtf/rtf_export.inc \rtf::addColour()

File

./class_rtf.php, line 146

Class

rtf

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"],
  );
}