
**Summary:** Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.

**Module:** [aspose.imaging](/imaging/python-net/aspose.imaging/)

**Full Name:** aspose.imaging.ColorBlend

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [ColorBlend()](#ColorBlend__1) | Initializes a new instance of the [ColorBlend](/imaging/python-net/aspose.imaging/colorblend/) class. |
| [ColorBlend(count)](#ColorBlend_count_2) | Initializes a new instance of the [ColorBlend](/imaging/python-net/aspose.imaging/colorblend/) class with the specified number of colors and positions. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| colors | [Color[]](/imaging/python-net/aspose.imaging/color/) | r/w | Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient. |
| positions | float[] | r/w | Gets or sets the positions along a gradient line. |


### Constructor: ColorBlend() {#ColorBlend__1}


```
 ColorBlend() 
```

Initializes a new instance of the [ColorBlend](/imaging/python-net/aspose.imaging/colorblend/) class.

### Constructor: ColorBlend(count) {#ColorBlend_count_2}


```
 ColorBlend(count) 
```

Initializes a new instance of the [ColorBlend](/imaging/python-net/aspose.imaging/colorblend/) class with the specified number of colors and positions.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| count | int | The number of colors and positions in this [ColorBlend](/imaging/python-net/aspose.imaging/colorblend/). |

