blackscorp/simplexnoise
最新稳定版本:v0.2.0
Composer 安装命令:
composer require blackscorp/simplexnoise
包简介
Simplex Noise algorithm written in PHP to generate a random noise
README 文档
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
统计信息
- 总下载量: 118
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-08