# Circle
圆形绘制组件。
## 子组件
无
## 接口
Circle\(options?: \{width: Length, height: Length\}\)
- 参数
- options参数说明
参数名
|
参数类型
|
必填
|
默认值
|
参数描述
|
width
|
Length
|
是
|
-
|
宽度。
|
height
|
Length
|
是
|
-
|
高度。
|
## 属性
参数名称
|
参数类型
|
默认值
|
必填
|
参数描述
|
width
|
Length
|
0
|
否
|
圆所在矩形的宽度。
|
height
|
Length
|
0
|
否
|
圆所在矩形的高度。
|
## 示例
```
@Entry
@Component
struct CircleExample {
build() {
Flex({ justifyContent: FlexAlign.SpaceAround }) {
// 绘制一个直径为150的圆
Circle({ width: 150, height: 150 })
// 绘制一个直径为150的圆
Circle().width(150).height(150)
}.width('100%').margin({ top: 5 })
}
}
```
