未验证 提交 395e641d 编写于 作者: O openharmony_ci 提交者: Gitee

!18158 [canvas]canvasGradient类addColorStop接口颜色参数说明补充 -3.2release

Merge pull request !18158 from zhangbingce/cherry-pick-1683878210
...@@ -22,7 +22,7 @@ addColorStop(offset: number, color: string): void ...@@ -22,7 +22,7 @@ addColorStop(offset: number, color: string): void
| 参数 | 类型 | 必填 | 默认值 | 描述 | | 参数 | 类型 | 必填 | 默认值 | 描述 |
| ------ | ------ | ---- | --------- | ---------------------------- | | ------ | ------ | ---- | --------- | ---------------------------- |
| offset | number | 是 | 0 | 设置渐变点距离起点的位置占总体长度的比例,范围为0到1。 | | offset | number | 是 | 0 | 设置渐变点距离起点的位置占总体长度的比例,范围为0到1。 |
| color | string | 是 | '#ffffff' | 设置渐变的颜色。 | | color | string | 是 | '#ffffff' | 设置渐变的颜色。颜色格式参考[ResourceColor](ts-types.md#resourcecolor)中string类型说明 |
**示例:** **示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册