Instance Method

initWithNoiseSource:

Initializes a noise object with the specified noise source.

Declaration

- (instancetype)initWithNoiseSource:(GKNoiseSource *)noiseSource;

Parameters

noiseSource

The noise source defining the style and configuration of noise to generate.

Return Value

A new noise object.

Discussion

To sample from the newly created object’s noise field or generate texture images, create a GKNoiseMap object from this noise object. Optionally, before doing so you can apply operations to process or transform the noise field, or combine it with other noise objects, to create a more complex or natural noise pattern. For details, see Applying Operations to Noise Values, Applying Operations that Combine Noise, Applying Operations that Distort Noise, Applying Geometric Transformations, and Creating Noise by Combining Noise.

See Also

Creating Noise

- initWithNoiseSource:gradientColors:

Initializes a noise object with the specified noise source, with colors for later use in generating noise textures.

+ noiseWithNoiseSource:

Creates a noise object with the specified noise source.

+ noiseWithNoiseSource:gradientColors:

Creates a noise object with the specified noise source, with colors for later use in generating noise textures.