Documentation ¶
Overview ¶
Package Noise provides methods for working with Noise object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsNoise() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) GetImage(width int, height int) [1]gdclass.Image
- func (self Instance) GetImage3d(width int, height int, depth int) [][1]gdclass.Image
- func (self Instance) GetNoise1d(x Float.X) Float.X
- func (self Instance) GetNoise2d(x Float.X, y Float.X) Float.X
- func (self Instance) GetNoise2dv(v Vector2.XY) Float.X
- func (self Instance) GetNoise3d(x Float.X, y Float.X, z Float.X) Float.X
- func (self Instance) GetNoise3dv(v Vector3.XYZ) Float.X
- func (self Instance) GetSeamlessImage(width int, height int) [1]gdclass.Image
- func (self Instance) GetSeamlessImage3d(width int, height int, depth int) [][1]gdclass.Image
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
This class defines the interface for noise generation libraries to inherit from. A default [method get_seamless_image] implementation is provided for libraries that do not provide seamless noise. This function requests a larger image from the [method get_image] method, reverses the quadrants of the image, then uses the strips of extra width to blend over the seams. Inheriting noise classes can optionally override this function to provide a more optimal algorithm.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) GetImage ¶
Returns an [Image] containing 2D noise values. [b]Note:[/b] With [param normalize] set to [code]false[/code], the default implementation expects the noise generator to return values in the range [code]-1.0[/code] to [code]1.0[/code].
func (Instance) GetImage3d ¶
Returns an [Array] of [Image]s containing 3D noise values for use with [method ImageTexture3D.create]. [b]Note:[/b] With [param normalize] set to [code]false[/code], the default implementation expects the noise generator to return values in the range [code]-1.0[/code] to [code]1.0[/code].
func (Instance) GetNoise1d ¶
Returns the 1D noise value at the given (x) coordinate.
func (Instance) GetNoise2d ¶
Returns the 2D noise value at the given position.
func (Instance) GetNoise2dv ¶
Returns the 2D noise value at the given position.
func (Instance) GetNoise3d ¶
Returns the 3D noise value at the given position.
func (Instance) GetNoise3dv ¶
Returns the 3D noise value at the given position.
func (Instance) GetSeamlessImage ¶
Returns an [Image] containing seamless 2D noise values. [b]Note:[/b] With [param normalize] set to [code]false[/code], the default implementation expects the noise generator to return values in the range [code]-1.0[/code] to [code]1.0[/code].
func (Instance) GetSeamlessImage3d ¶
Returns an [Array] of [Image]s containing seamless 3D noise values for use with [method ImageTexture3D.create]. [b]Note:[/b] With [param normalize] set to [code]false[/code], the default implementation expects the noise generator to return values in the range [code]-1.0[/code] to [code]1.0[/code].