blackscorp / simplexnoise
Simplex Noise algorithm written in PHP to generate a random noise
Installs: 92
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/blackscorp/simplexnoise
Requires
- php: >=7.4
README
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