Skip to content

BlackScorp/simplexnoise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages