RedeyeVentures\GeoPattern\GeoPattern::geoPlaid PHP Метод

geoPlaid() защищенный Метод

protected geoPlaid ( )
    protected function geoPlaid()
    {
        $height = 0;
        $width = 0;
        // Horizontal Stripes
        $i = 0;
        $times = 0;
        while ($times++ <= 18) {
            $space = $this->hexVal($i, 1);
            $height += $space + 5;
            $val = $this->hexVal($i + 1, 1);
            $opacity = $this->opacity($val);
            $fill = $this->fillColor($val);
            $stripeHeight = $val + 5;
            $this->svg->addRectangle(0, $height, "100%", $stripeHeight, ['opacity' => $opacity, 'fill' => $fill]);
            $height += $stripeHeight;
            $i += 2;
        }
        // Vertical Stripes
        $i = 0;
        $times = 0;
        while ($times++ <= 18) {
            $space = $this->hexVal($i, 1);
            $width += $space + 5;
            $val = $this->hexVal($i + 1, 1);
            $opacity = $this->opacity($val);
            $fill = $this->fillColor($val);
            $stripeWidth = $val + 5;
            $this->svg->addRectangle($width, 0, $stripeWidth, "100%", ['opacity' => $opacity, 'fill' => $fill]);
            $width += $stripeWidth;
            $i += 2;
        }
        $this->svg->setWidth($width)->setHeight($height);
    }