Instance Method
interpolate(_:masters:) interpolate:masters:error: interpolate_masters_error_
A detached layer formed by applying interpolation coefficients to compatible source layers.
Declaration
func interpolate(_ interpolation: [AnyHashable : Any], masters: [Any]) throws -> GSLayerDeclaration
- (GSLayer *) interpolate:(NSDictionary *) interpolation masters:(NSArray *) masters error:(NSError **) error;Declaration
interpolate_masters_error_(interpolation: dict, masters: list) -> tuple[GSLayer, NSError]Parameters
interpolationThe interpolation coefficient for each participating layer or font master identifier.
mastersThe font masters corresponding to the source layers.
Parameters
interpolationThe interpolation coefficient for each participating layer or font master identifier.
mastersThe font masters corresponding to the source layers.
errorOn return, an error that prevented complete interpolation.
Discussion
The coefficients are keyed by layer or font master identifier. A coefficient can be scalar or contain independent horizontal and vertical values. The source layers must have matching structure.
See Also
Interpolation
A detached layer interpolated for an instance together with its additional layers.
Adds the corresponding interpolated Smart Component layers to a target glyph.
Replaces layer contents with interpolation from the remaining layers in each layer group.
The nearest font master in one direction along an axis, or
nilwhen none exists.
See Also
Interpolation
Adds the corresponding interpolated Smart Component layers to a target glyph.
Replaces layer contents with interpolation from the remaining layers in each layer group.
Finds the nearest font master in one direction along an axis while keeping the other axis coordinates fixed.