code: public function getColourByIndex($index)
      {
          if (isset($this->colourMap[$index])) {
              return $this->colourMap[$index];
          }
  
          return null;
      }
docs: Get colour Map Value by Position.
  
  @param mixed $index
  
  @return string