## IDrawingFactory.CreateInterpolationColor method

Creates an interpolation color with the specified color and position.

```csharp
public IInterpolationColor CreateInterpolationColor(Color color, float position)
```

| Parameter | Type | Description |
| --- | --- | --- |
| color | Color | Represents the color that will be used at the corresponding position of the gradient. |
| position | Single | The position, represented as a percentage from 0 to 1, at which the corresponding gradient color will be used. |

### Return Value

The created [`IInterpolationColor`](../../iinterpolationcolor/).

### See Also

* interface [IInterpolationColor](../../iinterpolationcolor/)
* interface [IDrawingFactory](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
