<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/sixfoldRotatedTile()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)sixfoldRotatedTileFilter"
  },
  "title" : "sixfoldRotatedTile()"
}
-->

# sixfoldRotatedTile()

Creates a tiled image by rotating in increments of 60 degrees.

```
class func sixfoldRotatedTile() -> any CIFilter & CISixfoldRotatedTile
```

## Return Value

The tiled image.

## Discussion

This method applies the six-fold reflected tile filter to an image. The effect produces a tiled image by rotating the image in increments 60 degrees.

The six-fold rotated tile filter uses the following properties:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).
- `center`: A set of coordinates marking the center of the image as a CGPoint.
- `angle`: A `float` representing the direction of distortion , in radians as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `width`: A `float` representing the set width of each tile as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.

The following code creates a filter that results in flowers in the input image becoming rotated by 60 degrees and tiled to create the output:

```swift
func sixFoldRotated(inputImage: CIImage) -> CIImage {
    let sixFoldRotatedTile = CIFilter.sixfoldRotatedTile()
    sixFoldRotatedTile.inputImage = inputImage
    sixFoldRotatedTile.center = CGPoint(x: 150, y: 150)
    sixFoldRotatedTile.angle = 0
    sixFoldRotatedTile.width = 100
    return sixFoldRotatedTile.outputImage!
}
```

![Two photographs. The photo on the left is of a bouquet of colorful flowers up close with good lighting and focus. In the photo on the right, a six-fold rotated tile filter is applied, resulting in the white petals and purple center of a flower becoming a star pattern that is rotated and repeated throughout the image.](images/com.apple.coreimage/media-3599892@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)