Instance Method

raiseToPowerWithNoise:

Replaces values in the noise field by exponentiating them with values from the specified noise object.

Declaration

- (void)raiseToPowerWithNoise:(GKNoise *)noise;

Parameters

noise

The noise object from which to use values as exponents.

Discussion

Noise values are generally in the range [-1.0, 1.0], so exponentiating some points in a noise field can result in values outside the floating-point domain. Depending on the stylistic result you’re looking for, choose your base and exponent noises carefully or use other noise operations (such as the clampWithLowerBound:upperBound: and remapValuesToCurveWithControlPoints: methods) to conform the exponent noise to a specific range before using this method.

Figure 1

Example result of the raiseToPower (with noise) operation

See Also

Applying Operations that Combine Noise

- addWithNoise:

Replaces values in the noise field by adding them to values from the specified noise object.

- multiplyWithNoise:

Replaces values in the noise field by multiplying them with values from the specified noise object.

- maximumWithNoise:

Replaces values in the noise field by choosing the lesser of each value and a corresponding value in the specified noise object.

- minimumWithNoise:

Replaces values in the noise field by choosing the lesser of each value and a corresponding value in the specified noise object.