PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Vitalij Mik   SimpleX Noise Algorithm   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: SimpleX Noise Algorithm
Generate noise values using the SimpleX algorithm
Author: By
Last change:
Date: 1 year ago
Size: 583 bytes
 

Contents

Class file image Download

PHP SimplexNoise

this is just a php version of the original code at

https://weber.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf

Installation

composer require blackscorp/simplexnoise

Usage

$noise2D = new \BlackScorp\SimplexNoise\Noise2D();
$greyValue = $noise2D->getGreyValue($locationX, $locationY);
var_dump($greyValue); //a value between 0 and 255

Examples

for more examples and details please take a look at examples folder. just copy more png images into exampels/gradients in order to create cool effects

currently only 2D is implemented