Lines Matching defs:col

153 	// $col = array(R,G,B/255); or array(G/255); or array(C,M,Y,K/100)
154 // $stops = array('col'=>$col [, 'opacity'=>0-1] [, 'offset'=>0-1])
537 $this->mpdf->gradients[$n]['stops'][$i]['col'] = sprintf('%.3F %.3F %.3F %.3F', ord($stops[$i]['col'][1]) / 100, ord($stops[$i]['col'][2]) / 100, ord($stops[$i]['col'][3]) / 100, ord($stops[$i]['col'][4]) / 100);
539 $this->mpdf->gradients[$n]['stops'][$i]['col'] = sprintf('%.3F', ord($stops[$i]['col'][1]) / 255);
541 $this->mpdf->gradients[$n]['stops'][$i]['col'] = sprintf('%.3F %.3F %.3F', ord($stops[$i]['col'][1]) / 255, ord($stops[$i]['col'][2]) / 255, ord($stops[$i]['col'][3]) / 255);
728 $col = $this->colorConverter->convert($el[0], $this->mpdf->PDFAXwarnings);
729 if (!$col) {
730 $col = $this->colorConverter->convert(255, $this->mpdf->PDFAXwarnings);
732 if ($col[0] == 1) {
734 } elseif ($col[0] == 4 || $col[0] == 6) {
738 $g['stops'][] = $this->getStop($col, $el, true);
872 $col = $this->colorConverter->convert($el[0], $this->mpdf->PDFAXwarnings);
873 if (!$col) {
874 $col = $this->colorConverter->convert(255, $this->mpdf->PDFAXwarnings);
876 if ($col[0] == 1) {
878 } elseif ($col[0] == 4 || $col[0] == 6) {
881 $g['stops'][] = $this->getStop($col, $el);
886 private function getStop($col, $el, $convertOffset = false)
889 'col' => $col,
892 if ($col[0] == 5) {
894 $stop['opacity'] = ord($col[4]) / 100;
895 } elseif ($col[0] == 6) {
897 $stop['opacity'] = ord($col[5]) / 100;
898 } elseif ($col[0] == 1 && $col[2] == 1) {
900 $stop['opacity'] = ord($col[3]) / 100;
976 $g['col'] = $cor;
978 $g['col'] = $this->colorConverter->convert(255, $this->mpdf->PDFAXwarnings);
987 $g['stops'] = [['col' => $g['col'], 'opacity' => 1, 'offset' => 0], ['col' => $g['col2'], 'opacity' => 1, 'offset' => 1]];