Lines Matching defs:color
248 * Takes a hexadecimal color string in the following forms:
258 * @param string $color
261 protected function fixColor($color) {
262 if($color === '') return '';
263 if(preg_match('/^([0-9a-f])([0-9a-f])([0-9a-f])$/i', $color, $m)) {
268 } elseif(preg_match('/^([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i', $color, $m)) {
279 if(isset($this->replacements[$color])) {
280 return $this->replacements[$color];
282 if(isset($this->replacements['__' . $color . '__'])) {
283 return $this->replacements['__' . $color . '__'];