
## GradientStop(color, position) {#string_number}

Initializes a new instance of the [GradientStop](../) class.



```js
GradientStop(color: string, position: number)
```

| Parameter | Type | Description |
| --- | --- | --- |
| color | string | Represents the color of the gradient stop. |
| position | number | Represents the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0. |

## GradientStop(color, position, transparency) {#string_number_number}

Initializes a new instance of the [GradientStop](../) class.



```js
GradientStop(color: string, position: number, transparency: number)
```

| Parameter | Type | Description |
| --- | --- | --- |
| color | string | Represents the color of the gradient stop. |
| position | number | Represents the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0. |
| transparency | number | Represents the transparency of a stop within the gradient expressed as a percent in range 0.0 to 1.0. |

## See Also

* module [Aspose.Words.Drawing](../../)
* class [GradientStop](../)

