Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PerlinNoiseGenerator

[13:7] extends: FxObj

Wraps FXGL's PerlinNoiseGenerator (com.almasb.fxgl.core.math.PerlinNoiseGenerator), a seeded 1D Perlin noise generator. Required for reproducible procedural worlds and motion paths.

Methods

  • PerlinNoiseGenerator (int Seed = 0)

    Creates a new PerlinNoiseGenerator seeded with the supplied value. The same Seed yields the same sequence.

    • @p Seed is the seed value.
  • adopt (object Ajo)

    Wraps an existing PerlinNoiseGenerator AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a PerlinNoiseGenerator.
    • @r A new wrapper.
  • noise1D (double T)

    Returns a 1D Perlin noise sample at T.

    • @p T is the input parameter (typically continuous time).
    • @r A double approximately in [-1, 1].