Package swingtree.style
Class NoiseFunctions
java.lang.Object
swingtree.style.NoiseFunctions
A collection of noise functions that can be used to generate procedural textures.
The functions in this class are also supposed to serve as an example
which demonstrates how to create procedural textures yourself.
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
cells
(float xIn, float yIn) static float
fabric
(float xIn, float yIn) static float
grainy
(float xIn, float yIn) static float
hardSpots
(float xIn, float yIn) static float
hardTopology
(float xIn, float yIn) static float
haze
(float xIn, float yIn) static float
mandelbrot
(float xIn, float yIn) static double
projectPointOntoLine
(double x1, double y1, double x2, double y2, double px, double py) static float
retro
(float xIn, float yIn) static float
smoothSpots
(float xIn, float yIn) static float
smoothTopology
(float xIn, float yIn) static float
spirals
(float xIn, float yIn) static float
stochastic
(float xIn, float yIn) static float
tiles
(float xIn, float yIn) static float
voronoiBasedCellMosaic
(float xIn, float yIn) static float
voronoiBasedCellTissue
(float xIn, float yIn) static float
voronoiBasedPolygonCell
(float xIn, float yIn) static float
voronoiBasedPondInDrizzle
(float xIn, float yIn) static float
voronoiBasedPondInRain
(float xIn, float yIn) static float
voronoiBasedPondOfStrings
(float xIn, float yIn) static float
voronoiBasedPondOfTangledStrings
(float xIn, float yIn)
-
Method Details
-
stochastic
public static float stochastic(float xIn, float yIn) -
smoothTopology
public static float smoothTopology(float xIn, float yIn) -
hardTopology
public static float hardTopology(float xIn, float yIn) -
hardSpots
public static float hardSpots(float xIn, float yIn) -
smoothSpots
public static float smoothSpots(float xIn, float yIn) -
grainy
public static float grainy(float xIn, float yIn) -
tiles
public static float tiles(float xIn, float yIn) -
fabric
public static float fabric(float xIn, float yIn) -
retro
public static float retro(float xIn, float yIn) -
cells
public static float cells(float xIn, float yIn) -
haze
public static float haze(float xIn, float yIn) -
spirals
public static float spirals(float xIn, float yIn) -
mandelbrot
public static float mandelbrot(float xIn, float yIn) -
voronoiBasedCellTissue
public static float voronoiBasedCellTissue(float xIn, float yIn) -
voronoiBasedCellMosaic
public static float voronoiBasedCellMosaic(float xIn, float yIn) -
voronoiBasedPolygonCell
public static float voronoiBasedPolygonCell(float xIn, float yIn) -
projectPointOntoLine
public static double projectPointOntoLine(double x1, double y1, double x2, double y2, double px, double py) -
voronoiBasedPondInDrizzle
public static float voronoiBasedPondInDrizzle(float xIn, float yIn) -
voronoiBasedPondInRain
public static float voronoiBasedPondInRain(float xIn, float yIn) -
voronoiBasedPondOfStrings
public static float voronoiBasedPondOfStrings(float xIn, float yIn) -
voronoiBasedPondOfTangledStrings
public static float voronoiBasedPondOfTangledStrings(float xIn, float yIn)
-