Lines Matching refs:matches
170 if (preg_match("/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/",$decl,$matches)) {
171 $r = min(255,max(0,$matches[1]));
172 $g = min(255,max(0,$matches[2]));
173 $b = min(255,max(0,$matches[3]));
178 if (preg_match("/rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/",$decl,$matches)) {
179 $r = min(255,max(0,$matches[1]*255/100));
180 $g = min(255,max(0,$matches[2]*255/100));
181 $b = min(255,max(0,$matches[3]*255/100));
194 if (preg_match("/^#([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})$/",$decl,$matches)) {
195 $arrr = unpack("C",pack("H2",$matches[1]));
196 $arrg = unpack("C",pack("H2",$matches[2]));
197 $arrb = unpack("C",pack("H2",$matches[3]));
210 if (preg_match("/^#([[:xdigit:]])([[:xdigit:]])([[:xdigit:]])$/",$decl,$matches)) {
211 $arrr = unpack("C",pack("H2",$matches[1].$matches[1]));
212 $arrg = unpack("C",pack("H2",$matches[2].$matches[2]));
213 $arrb = unpack("C",pack("H2",$matches[3].$matches[3]));