public function addCircle($x, $y, $size, $counterClockwise)
    {
        $sweepFlag = $counterClockwise ? '0' : '1';
        $radiusAsString = number_format($size / 2, 2, '.', '');

        $this->dataString .=
            'M'. number_format($x, 2, '.', '') .' '. 
                number_format($y + $size / 2, 2, '.', '').
            'a'. $radiusAsString .','. $radiusAsString .' 0 1,'. 
                $sweepFlag .' '. number_format($size, 2, '.', '') .',0'.
            'a'. $radiusAsString .','. $radiusAsString .' 0 1,'. 
                $sweepFlag .' '. number_format(-$size, 2, '.', '') .',0';
    }
public function addCircle($x, $y, $size, $counterClockwise)
    {
        $sweepFlag = $counterClockwise ? '0' : '1';
        $radiusAsString = number_format($size / 2, 2, '.', '');

        $this->dataString .=
            'M'. number_format($x, 2, '.', '') .' '. 
                number_format($y + $size / 2, 2, '.', '').
            'a'. $radiusAsString .','. $radiusAsString .' 0 1,'. 
                $sweepFlag .' '. number_format($size, 2, '.', '') .',0'.
            'a'. $radiusAsString .','. $radiusAsString .' 0 1,'. 
                $sweepFlag .' '. number_format(-$size, 2, '.', '') .',0';
    }
public function addCircle ( $ x , $ y , $ size , $ counterClockwise ) { $ sweepFlag = $ counterClockwise ? '0' : '1' ; $ radiusAsString = number_format ( $ size / 2 , 2 , '.' , '' ) ; $ this -> dataString .= 'M' . number_format ( $ x , 2 , '.' , '' ) . ' ' . number_format ( $ y + $ size / 2 , 2 , '.' , '' ) . 'a' . $ radiusAsString . ',' . $ radiusAsString . ' 0 1,' . $ sweepFlag . ' ' . number_format ( $ size , 2 , '.' , '' ) . ',0' . 'a' . $ radiusAsString . ',' . $ radiusAsString . ' 0 1,' . $ sweepFlag . ' ' . number_format ( - $ size , 2 , '.' , '' ) . ',0' ; }
Adds a circle to the SVG.

@param float $x X coordinate of the left side of the containing rectangle.
@param float $y Y coordinate of the top side of the containing rectangle.
@param float $size The diameter of the circle.
@param bool $counterClockwise If true the circle will be drawn counter
clockwise. This affects the rendering since the evenodd filling rule
is used by Jdenticon.
Adds a circle to the SVG .