BitmapData#circle()

circle(x, y, radius, fillStyle) → {Phaser.BitmapData}

Draws a filled Circle to the BitmapData at the given x, y coordinates and radius in size.

Parameters
Name Type Argument Description
x number

The x coordinate to draw the Circle at. This is the center of the circle.

y number

The y coordinate to draw the Circle at. This is the center of the circle.

radius number

The radius of the Circle in pixels. The radius is half the diameter.

fillStyle string <optional>

If set the context fillStyle will be set to this value before the circle is drawn.

Returns

This BitmapData object for method chaining.

Source code: gameobjects/BitmapData.js (Line 1891)
doc_phaser
2017-02-14 10:36:49
Comments
Leave a Comment

Please login to continue.