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 floatcells(float xIn, float yIn) static floatfabric(float xIn, float yIn) static floatgrainy(float xIn, float yIn) static floathardSpots(float xIn, float yIn) static floathardTopology(float xIn, float yIn) static floathaze(float xIn, float yIn) static floatmandelbrot(float xIn, float yIn) static doubleprojectPointOntoLine(double x1, double y1, double x2, double y2, double px, double py) static floatretro(float xIn, float yIn) static floatsmoothSpots(float xIn, float yIn) static floatsmoothTopology(float xIn, float yIn) static floatspirals(float xIn, float yIn) static floatstochastic(float xIn, float yIn) static floattiles(float xIn, float yIn) static floatvoronoiBasedCellMosaic(float xIn, float yIn) static floatvoronoiBasedCellTissue(float xIn, float yIn) static floatvoronoiBasedPolygonCell(float xIn, float yIn) static floatvoronoiBasedPondInDrizzle(float xIn, float yIn) static floatvoronoiBasedPondInRain(float xIn, float yIn) static floatvoronoiBasedPondOfStrings(float xIn, float yIn) static floatvoronoiBasedPondOfTangledStrings(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)
-