Draws this icon using a specified renderer.
public function draw( Jdenticon\Rendering\RendererInterface $renderer, Jdenticon\Rendering\Rectangle $rect = null ) : void
$renderer
specifies the renderer that will be used to render the icon.
$rect
specifies the outer bounds (including padding) where the icon will be rendered. If the parameter is omitted, the rectangle is calculated from the current icon size and padding.
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 \Jdenticon\Rendering\RendererInterface
.