public function draw(
        \Jdenticon\Rendering\RendererInterface $renderer, 
        \Jdenticon\Rendering\Rectangle $rect = null)
    {
        if ($rect === null) {
            $rect = $this->getIconBounds();
        }
        $this->iconGenerator->generate(
            $renderer, $rect, $this->style, $this->hash);
    }
public function draw(
        \Jdenticon\Rendering\RendererInterface $renderer, 
        \Jdenticon\Rendering\Rectangle $rect = null)
    {
        if ($rect === null) {
            $rect = $this->getIconBounds();
        }
        $this->iconGenerator->generate(
            $renderer, $rect, $this->style, $this->hash);
    }
public function draw ( \ Jdenticon \ Rendering \ RendererInterface $ renderer , \ Jdenticon \ Rendering \ Rectangle $ rect = null ) { if ( $ rect === null ) { $ rect = $ this -> getIconBounds ( ) ; } $ this -> iconGenerator -> generate ( $ renderer , $ rect , $ this -> style , $ this -> hash ) ; }
Draws this icon using a specified renderer.

This method is only intended for usage with custom renderers. A custom
renderer could as an example render an Identicon in a file format not
natively supported by Jdenticon. To implement a new file format,
implement {@see \Jdenticon\Rendering\RendererInterface}.

@param \Jdenticon\Rendering\RendererInterface $renderer The renderer used
to render this icon.
@param \Jdenticon\Rendering\Rectangle $rect The bounds of the rendered
icon. No padding will be applied to the rectangle. If the parameter
is omitted, the rectangle is calculated from the current icon
size and padding.
Draws this icon using a specified renderer .