<!--
{
  "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/fourfoldReflectedTile()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)fourfoldReflectedTileFilter"
  },
  "title" : "fourfoldReflectedTile()"
}
-->

# fourfoldReflectedTile()

Creates a four-way reflected pattern.

```
class func fourfoldReflectedTile() -> any CIFilter & CIFourfoldReflectedTile
```

## Return Value

The tiled image.

## Discussion

This method applies the four-fold reflected tile filter to an image. The effect produces a four-way reflected tile image.

The four-fold reflected 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 <doc://com.apple.documentation/documentation/CoreFoundation/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>.
- `acute angle`: A `float` representing the primary angle for the repeating parallelogram tile as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.

The following code creates a filter that results in a four-fold pattern:

```swift
func fourFoldReflected(inputImage: CIImage) -> CIImage {
    let fourFoldReflectedTile = CIFilter.fourfoldReflectedTile()
    fourFoldReflectedTile.inputImage = inputImage
    fourFoldReflectedTile.center = CGPoint(x: 150, y: 150)
    fourFoldReflectedTile.width = 10
    fourFoldReflectedTile.angle = 7
    fourFoldReflectedTile.acuteAngle = 1
    return fourFoldReflectedTile.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 four-fold reflected tile filter is applied, resulting in the red petals and yellow flower center becoming a hexagon pattern that is repeated throughout the image.](images/com.apple.coreimage/media-3599880@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)