public function generate(
        \Jdenticon\Rendering\RendererInterface $renderer, 
        \Jdenticon\Rendering\Rectangle $rect,
        \Jdenticon\IdenticonStyle $style, 
        $hash)
    {
        $hue = self::getHue($hash);
        $colorTheme = new ColorTheme($hue, $style);

        $this->renderBackground($renderer, $rect, $style, $colorTheme, $hash);
        $this->renderForeground($renderer, $rect, $style, $colorTheme, $hash);
    }
public function generate(
        \Jdenticon\Rendering\RendererInterface $renderer, 
        \Jdenticon\Rendering\Rectangle $rect,
        \Jdenticon\IdenticonStyle $style, 
        $hash)
    {
        $hue = self::getHue($hash);
        $colorTheme = new ColorTheme($hue, $style);

        $this->renderBackground($renderer, $rect, $style, $colorTheme, $hash);
        $this->renderForeground($renderer, $rect, $style, $colorTheme, $hash);
    }
public function generate ( \ Jdenticon \ Rendering \ RendererInterface $ renderer , \ Jdenticon \ Rendering \ Rectangle $ rect , \ Jdenticon \ IdenticonStyle $ style , $ hash ) { $ hue = self :: getHue ( $ hash ) ; $ colorTheme = new ColorTheme ( $ hue , $ style ) ; $ this -> renderBackground ( $ renderer , $ rect , $ style , $ colorTheme , $ hash ) ; $ this -> renderForeground ( $ renderer , $ rect , $ style , $ colorTheme , $ hash ) ; }
Generates an identicon for the specified hash.

@param \Jdenticon\Rendering\RendererInterface $renderer The renderer to
be used for rendering the icon on the target surface.
@param \Jdenticon\Rendering\Rectangle $rect The outer bounds of the icon.
@param \Jdenticon\IdenticonStyle $style The style of the icon.
@param string $hash The hash to be used as basis for the generated icon.
Generates an identicon for the specified hash .