Description

(1.3.1) The fillRect() method draws a "filled" circle. The default color of the fill is black.

Usage

Parameters

  • x {Integer} optional

    (optional) The x-coordinate of circle center. By default, 0.

  • y {Integer} optional

    (optional) The y-coordinate of circle center. By default, 0.

  • radius {Integer} optional

    (optional) Length of the radius of the circle. By default, width of the element.

Returns

CanvasEngine.Element

Example

In ready method.

Example 1 :

var el = this.createElement();
el.fillStyle = "red";
el.fillCircle(30, 30, 15);

Example 2 :

var el = this.createElement();
el.fillCircle(15);

Example 3 :

var el = this.createElement(60, 60);
el.fillCircle();

Discussion