## IDrawingFactory.CreateInterpolationColor method

Creates an interpolation color with the specified color and position.

```java
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](../)
* package [com.aspose.html.drawing](../../../com.aspose.html.drawing/)
* package [Aspose.HTML](../../../)
