iVoider

iVoider / OpenSimplexNoise / 0.2.0

README.md

Overview

Generates gradient noise using OpenSimplex function.

Example

Applicable Scenarios and Problems

This is an extremely powerful algorithm that is used often in procedural content generation. It is especially useful for gaming development, visual media creating and simulations.

Usage

Input

You will need to specify the width and height of the generated image and also size of feature.

Additionally, you could provide seed for random generation.

Output

You will recieve Integer two-dimension array of colors (use it for conversion into image).

Examples

Standart input:

{  "width": "255" , 
   "height": "255" , 
	 "feature_size" : "24" 
}

Output:

[[8355711,8355711,...],[4605510,...],[11579568,...],[2950110,...],...]

With seed:

{  "width": "512" , 
   "height": "512" , 
	 "feature_size" : "24" , 
	 "seed": "162436037857"
}

Output:

[[8355711,8355711,...],[6513507,...],[5723991,...],[9145227,...],...]