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 6e31d4b8ac3cf4641876baa1797008e3cb6214da..f85b4f52857acda98451020f0222087a5a6b9d50 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