Instance Method

invert

Replaces all values in the noise field with their opposite, reversing the range of noise values.

Declaration

- (void)invert;

Discussion

For example, a value of 1.0 becomes -1.0, a value of -0.5 becomes 0.5, and so on.

Figure 1

Example result of the applyAbsoluteValue operation

See Also

Applying Operations to Noise Values

- applyAbsoluteValue

Replaces all negative values in the noise field with their positive absolute values.

- raiseToPower:

Replaces all values in the noise field by raising each value to the specified power.

- clampWithLowerBound:upperBound:

Replaces values in the noise field outside the specified range with the values at the endpoints of that range.

- remapValuesToCurveWithControlPoints:

Replaces values in the noise field by mapping them to a curve that passes through the specified control points.

- remapValuesToTerracesWithPeaks:terracesInverted:

Replaces values in the noise field by mapping them to a terrace-like curve that passes through the specified control points.