# Ellipse The **\** component is used to draw an ellipse. > **NOTE** > > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. ## Child Components Not supported ## APIs Ellipse(options?: {width?: string | number, height?: string | number}) **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | width | string \| number | No| Width.
Default value: **0**| | height | string \| number | No| Height.
Default value: **0**| ## Attributes In addition to the [universal attributes](ts-universal-attributes-size.md), the following attributes are supported. | Name| Type| Default Value| Description| | -------- | -------- | -------- | -------- | | fill | [ResourceColor](ts-types.md) | Color.Black | Color of the fill area.| | fillOpacity | number \| string \| [Resource](ts-types.md#resource)| 1 | Opacity of the fill area.| | stroke | [ResourceColor](ts-types.md) | - |Stroke color. If this attribute is not set, the component does not have any stroke.| | strokeDashArray | Array<Length> | [] | Stroke dashes. | | strokeDashOffset | number \| string | 0 | Offset of the start point for drawing the stroke.| | strokeLineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle) | LineCapStyle.Butt | Cap style of the stroke.| | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | Join style of the stroke.| | strokeMiterLimit | number \| string | 4 | Limit value when the sharp angle is drawn as a miter.| | strokeOpacity | number \| string \| [Resource](ts-types.md#resource)| 1 | Stroke opacity.
**NOTE**
The value range is [0.0, 1.0]. If the set value is less than 0.0, **0.0** will be used. If the set value is greater than 1.0, **1.0** will be used.| | strokeWidth | Length | 1 | Stroke width.| | antiAlias | boolean | true | Whether anti-aliasing is enabled.| ## Example ```ts // xxx.ets @Entry @Component struct EllipseExample { build() { Column({ space: 10 }) { // Draw a 150 x 80 ellipse. Ellipse({ width: 150, height: 80 }) // Draw a 150 x 100 ellipse with blue strokes. Ellipse() .width(150) .height(100) .fillOpacity(0) .stroke(Color.Blue) .strokeWidth(3) }.width('100%') } } ``` ![en-us_image_0000001174104394](figures/en-us_image_0000001174104394.png)