---
title: "Swirl Constructor (Int32, Int32, Single, Color, InterpolationMode)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Swirl_ctor_5_7c5ae8ff.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Swirl Constructor (Int32, Int32, Single, Color, InterpolationMode)
 
Creates and initializes [Swirl](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Swirl.htm.md) class instance. You can set all swirl transform parameters here.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _x As Integer, _y As Integer, _scaleFactor As Single, _backgroundColor As Color, _interpolationMode As InterpolationMode _
)
```
 
```csharp
public Swirl(int x,int y,float scaleFactor,Color backgroundColor,InterpolationMode interpolationMode
)
```
 
### Parameters
 
 - x
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
X-coordinate of the swirl center. Can be modified later through [Center](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Swirl_Center.htm.md) property.

 - y
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Y-coordinate of the swirl center. Can be modified later through [Center](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Swirl_Center.htm.md) property.

 - scaleFactor
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Swirl scale factor. Can be modified later through [ScaleFactor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Swirl_ScaleFactor.htm.md) property.

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Value specifying background color for the swirled image. Can be modified later through [BackgroundColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Swirl_BackgroundColor.htm.md) property.

 - interpolationMode
     - Type: [Aurigma.GraphicsMill.Transforms.InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md)
 [InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md) value specifying interpolation algorithm used during swirling. Can be modified later through [InterpolationMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Swirl_InterpolationMode.htm.md) property.
   
## See Also

### Reference

- [Swirl Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Swirl.htm.md)
- [Swirl Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Swirl_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
