Sepia

public struct Sepia: Filter

Maps the colors of an image to various shades of brown.

let logo = Image("logo")
logo.apply(Sepia())
canvas.add(logo)
  • The name of the Core Image filter.

    Declaration

    Swift

    public let filterName = "CISepiaTone"
  • The intensity of the filter. Defaults to 1.0

    Declaration

    Swift

    public var intensity: Double = 1.0
  • Initializes a new filter

    Declaration

    Swift

    public init() {}
  • Initializes a new filter, with a specified intensity.

    Declaration

    Swift

    public init(intensity: Double) { self.intensity = intensity }

    Parameters

    intensity

    a Double value

  • Applies the properties of the receiver to create a new CIFilter object

    Declaration

    Swift

    public func createCoreImageFilter(inputImage: CIImage) -> CIFilter

    Parameters

    inputImage

    The image to use as input to the filter.

    Return Value

    The new CIFilter object.