One Logo Pool Ball
ColorSync · IOS API REFERENCE

ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform.ToneMapping.Method.AlternateCurve.ControlPoints

struct · iOS 27.0+ · SDK 27.1

struct ControlPoints

The spline control points that define a gain curve.

Members (7)

init · iOS 27.0+

init

TypeScript
static init(x: Array<number>, y: Array<number>, slopes?: ColorSyncProfile_HeadroomAdaptiveGainCurve_ColorVolumeTransform_ToneMapping_Method_AlternateCurve_ControlPoints_Slopes): ColorSyncProfile_HeadroomAdaptiveGainCurve_ColorVolumeTransform_ToneMapping_Method_AlternateCurve_ControlPoints
Swift declaration
init(x: [Float], y: [Float], slopes: ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform.ToneMapping.Method.AlternateCurve.ControlPoints.Slopes = .interpolate) throws

Creates a set of spline control points. - Parameters: - x: Input levels normalized by reference white: 1.0 = reference white, and at most 32 points. - y: Gain offsets in stops, one per `x` value. Must have the same count as `x` and non-negative. - slopes: How the framework determines the slope at each control point. Defaults to ``Slopes/interpolate``. - Throws: ``Error/mismatchedControlPointArrays(x:y:)`` if `x` and `y` differ in count, ``Error/tooManyControlPoints(count:limit:)`` if there are more than 32 points, or ``Error/mismatchedTangentCount(got:expected:)`` if explicit `slopes` don't match the point count.

get · iOS 27.0+

x

TypeScript
get x(): Array<number>
Swift declaration
var x: [Float]

Input levels normalized by reference white: 1.0 = reference white.

set · iOS 27.0+

x

TypeScript
set x(value: Array<number>)
Swift declaration
var x: [Float]

Input levels normalized by reference white: 1.0 = reference white.

get · iOS 27.0+

y

TypeScript
get y(): Array<number>
Swift declaration
var y: [Float]

Gain offsets in stops (non-negative): the framework infers direction (expand vs. compress) from the relationship between this alternate's headroom and the baseline headroom.

set · iOS 27.0+

y

TypeScript
set y(value: Array<number>)
Swift declaration
var y: [Float]

Gain offsets in stops (non-negative): the framework infers direction (expand vs. compress) from the relationship between this alternate's headroom and the baseline headroom.

get · iOS 27.0+

slopes

TypeScript
get slopes(): ColorSyncProfile_HeadroomAdaptiveGainCurve_ColorVolumeTransform_ToneMapping_Method_AlternateCurve_ControlPoints_Slopes
Swift declaration
var slopes: ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform.ToneMapping.Method.AlternateCurve.ControlPoints.Slopes

How the framework determines the slope at each control point.

set · iOS 27.0+

slopes

TypeScript
set slopes(value: ColorSyncProfile_HeadroomAdaptiveGainCurve_ColorVolumeTransform_ToneMapping_Method_AlternateCurve_ControlPoints_Slopes)
Swift declaration
var slopes: ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform.ToneMapping.Method.AlternateCurve.ControlPoints.Slopes

How the framework determines the slope at each control point.

Skipped declarations

No declarations were skipped in this snapshot.

All ColorSync types →