You are here

public function rtf::addColour in Bibliography Module 7

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

File

modules/rtf/rtf_export.inc, line 186

Class

rtf

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