Description

(1.3.1) The strokeCircle() method draws a circle (no fill). The default color of the stroke 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.strokeStyle = "red";
el.strokeCircle(30, 30, 15);

Example 2 :

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

Example 3 :

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

Discussion