CIFilter_Generator_LenticularHalo - linhay/Stem GitHub Wiki

CIFilter.Generator.LenticularHalo

Discussion This filter is typically applied to another image to simulate lens flares and similar effects.

struct LenticularHalo: CIFilterContainerProtocol

and later and in iOS 9 and later.

Inheritance

CIFilterContainerProtocol

Initializers

init()

init()

Properties

filter

var filter: CIFilter

center

The center of the lens flare. A CIVector object whose attribute type is CIAttributeTypePosition and whose display name is Center. Default value: [150 150]

var center: CIVector

color

Controls the proportion of red, green, and blue halos. A CIColor object whose display name is Color.

var color: CIColor?

haloRadius

Controls the size of the lens flare. An NSNumber object whose attribute type is CIAttributeTypeDistance and whose display name is Halo Radius. Default value: 70.00

var haloRadius: NSNumber

haloWidth

Controls the width of the lens flare, that is, the distance between the inner flare and the outer flare. An NSNumber object whose attribute type is CIAttributeTypeDistance and whose display name is Halo Width. Default value: 87.00

var haloWidth: NSNumber

haloOverlap

Controls how much the red, green, and blue halos overlap. A value of 0 means no overlap (a lot of separation). A value of 1 means full overlap (white halos). An NSNumber object whose attribute type is CIAttributeTypeScalar and whose display name is Halo Overlap. Default value: 0.77

var haloOverlap: NSNumber

striationStrength

Controls the brightness of the rainbow-colored halo area. An NSNumber object whose attribute type is CIAttributeTypeScalar and whose display name is Striation Strength. Default value: 0.50

var striationStrength: NSNumber

striationContrast

Controls the contrast of the rainbow-colored halo area. An NSNumber object whose attribute type is CIAttributeTypeScalar and whose display name is Striation Contrast. Default value: 1.00

var striationContrast: NSNumber

time

Adds a randomness to the lens flare; it causes the flare to "sparkle" as it changes through various time values. An NSNumber object whose attribute type is CIAttributeTypeScalar and whose display name is Time. Default value: 0.00

var time: NSNumber