
## TwoColorGradient class

Represents two color gradient.

```js
new TwoColorGradient(color1, color2, gradientStyleType, variant)
```

## Methods

| Name | Description |
| --- | --- |
| [getColor1()](#getcolor1) | Gets and sets the first gradient color. |
| [getColor2()](#getcolor2) | Gets and sets the second gradient color. |
| [getGradientStyleType()](#getgradientstyletype) | Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant. |
| [getVariant()](#getvariant) | Gets and sets the gradient variant. |
| [setColor1()](#setcolor1) | Gets and sets the first gradient color. |
| [setColor2()](#setcolor2) | Gets and sets the second gradient color. |
| [setGradientStyleType()](#setgradientstyletype) | Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant. |
| [setVariant()](#setvariant) | Gets and sets the gradient variant. |

### getColor1() {#getcolor1}

Gets and sets the first gradient color.

### getColor2() {#getcolor2}

Gets and sets the second gradient color.

### getGradientStyleType() {#getgradientstyletype}

Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant.

### getVariant() {#getvariant}

Gets and sets the gradient variant.

### setColor1() {#setcolor1}

Gets and sets the first gradient color.

### setColor2() {#setcolor2}

Gets and sets the second gradient color.

### setGradientStyleType() {#setgradientstyletype}

Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant.

### setVariant() {#setvariant}

Gets and sets the gradient variant.
