From 80950f186be83150323c22fad4ef14cc2ca0a046 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Fri, 10 Jun 2022 00:57:44 +0000 Subject: [PATCH] update en/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md. Signed-off-by: king_he <6384784@qq.com> --- .../arkui-ts/ts-components-canvas-canvasgradient.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md b/en/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md index 6e31d4b8ac..f85b4f5285 100644 --- a/en/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md +++ b/en/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md @@ -1,11 +1,11 @@ # CanvasGradient -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE** > This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. -**CanvasGradient** provides a gradient object. +**CanvasGradient** provides a canvas gradient object. ## addColorStop @@ -15,10 +15,10 @@ addColorStop(offset: number, color: string): void Adds a color stop for the **CanvasGradient** object based on the specified offset and gradient color. - Parameters - | Name | Type | Mandatory | Default Value | Description | + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | - | offset | number | Yes | 0 | Proportion of the distance between the color stop and the start point to the total length. The value ranges from 0 to 1. | - | color | string | Yes | 'ffffff' | Gradient color to set. | + | offset | number | Yes | 0 | Proportion of the distance between the color stop and the start point to the total length. The value ranges from 0 to 1. | + | color | string | Yes | 'ffffff' | Gradient color to set. | - Example -- GitLab