Class ColorNoise

java.lang.Object
squidpony.squidmath.FastNoise
squidpony.squidgrid.gui.gdx.ColorNoise
All Implemented Interfaces:
Serializable, Noise.Noise2D, Noise.Noise3D, Noise.Noise4D, Noise.Noise6D

public class ColorNoise
extends FastNoise
Created by Tommy Ettinger on 6/12/2017.
See Also:
Serialized Form
  • Field Details

  • Constructor Details

  • Method Details

    • bounce256

      public static int bounce256​(int s)
    • colorNoise

      public float colorNoise​(double noise)
    • colorNoise

      public float colorNoise​(float xin, float yin, int seed)
      2D simplex noise that produces a color, as a packed float.
      Parameters:
      xin - X input; works well if between 0.0 and 1.0, but anything is accepted
      yin - Y input; works well if between 0.0 and 1.0, but anything is accepted
      seed - a seed that will change how and when any colors will be produced
      Returns:
      noise in the form of a packed float color
    • colorNoise

      public float colorNoise​(float xin, float yin, float zin, int seed)
      3D simplex noise that produces a color, as a packed float.
      Parameters:
      xin - X input; works well if between 0.0 and 1.0, but anything is accepted
      yin - Y input; works well if between 0.0 and 1.0, but anything is accepted
      zin - Z input; works well if between 0.0 and 1.0, but anything is accepted
      seed - a seed that will change how and when any colors will be produced
      Returns:
      noise in the form of a packed float color