angle([angle])
Class: Ellipse. Method inherited from Shape.
Description:
Gets or sets the rotation angle of the shape around its anchor.
Use the anchor() method to specify the anchor position relative to the shape.
The default anchor is set to the top-left corner of the shape's bounding rectangle (even for non-rectangular shapes).
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number |
Rotation angle in degrees. Values below 0 or above 360 are normalized to the range 0–360 using the modulus operator (%). |
Returns:
If called without arguments, returns the current value; otherwise this shape is returned for method chaining.
Type: number | this
