Instance Property

size

The size of the “slice” of noise samples contained in the noise map relative to the unit coordinate space of the noise object it was created from.

Declaration

var size: vector_double2 { get }

Discussion

If you later generate a texture image from the noise map with the SKTexture class, this size is also the pixel dimensions of the texture to generate.

This property is read-only; you define the size of a noise map when creating it with the interpolatedValue(at:) initializer.

See Also

Inspecting a Noise Map

var origin: vector_double2

The position of the “slice” of noise samples contained in the noise map relative to the unit coordinate space of the noise object it was created from.

var sampleCount: vector_int2

The width and height of integer grid for which the noise map contains sampled noise values.

var isSeamless: Bool

A Boolean value indicating whether the noise map’s output can repeat seamlessly in all directions.