src/Rasterization/Renderers/SVGRenderer.php
public function render(SVGRasterizer $rasterizer, array $options, SVGNode $context)
    {
        $params = $this->prepareRenderParams($rasterizer, $options);

        $paintOrder = $this->getPaintOrder($context);
        foreach ($paintOrder as $paint) {
            if ($paint === 'fill') {
                $this->paintFill($rasterizer, $context, $params);
            } elseif ($paint === 'stroke') {
                $this->paintStroke($rasterizer, $context, $params);
            }
        }
    }
public function render(SVGRasterizer $rasterizer, array $options, SVGNode $context)
    {
        $params = $this->prepareRenderParams($rasterizer, $options);

        $paintOrder = $this->getPaintOrder($context);
        foreach ($paintOrder as $paint) {
            if ($paint === 'fill') {
                $this->paintFill($rasterizer, $context, $params);
            } elseif ($paint === 'stroke') {
                $this->paintStroke($rasterizer, $context, $params);
            }
        }
    }
public function render ( SVGRasterizer $ rasterizer , array $ options , SVGNode $ context ) { $ params = $ this -> prepareRenderParams ( $ rasterizer , $ options ) ; $ paintOrder = $ this -> getPaintOrder ( $ context ) ; foreach ( $ paintOrder as $ paint ) { if ( $ paint === 'fill' ) { $ this -> paintFill ( $ rasterizer , $ context , $ params ) ; } elseif ( $ paint === 'stroke' ) { $ this -> paintStroke ( $ rasterizer , $ context , $ params ) ; } } }
Renders the shape to the rasterizer, using the given options and node
context.

The node is required for access to things like the opacity as well as
stroke/fill attributes etc.
The options array is subclass-specific; for example, ellipse renderers
might require the center and the radiuses while polygon renderers might
require an array of points. For details, see the respective subclasses.

Note that as part of the renderer contract, every option that is passed
in must not be offset, scaled or even validated beforehand. Such things
are dealt with by the `SVGRenderer::prepareRenderParams()` method.

@param SVGRasterizer $rasterizer The rasterizer to render to.
@param mixed[]       $options    Associative array of renderer options.
@param SVGNode       $context    The SVGNode serving as the context.

@return void
Renders the shape to the rasterizer using the given options and node context .