未验证 提交 2691c113 编写于 作者: Q qiqimao 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md.

Signed-off-by: qiqimao<qiqimao1234@163.com>
Signed-off-by: Nqiqimao <qiqimao1234@163.com>
上级 810a8119
......@@ -20,7 +20,7 @@ addColorStop(offset: number, color: string): void
| color | string | 是 | '#ffffff' | 设置渐变的颜色。 |
- 示例
```ts
```ts
// xxx.ets
@Entry
@Component
......@@ -46,6 +46,9 @@ addColorStop(offset: number, color: string): void
.width('100%')
.height('100%')
}}
```
![zh-cn_image_0000001194032516](figures/zh-cn_image_0000001194032516.png)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册