cryde/noise-functions
最新稳定版本:0.0.2
Composer 安装命令:
composer require cryde/noise-functions
包简介
Algorithm for generating heightmaps
README 文档
README
Description
Generate array of noise values.
This package replicate some noise functions part of https://github.com/mario-deluna/php-glfw but in raw PHP (based on this implementation: https://github.com/nothings/stb/blob/master/stb_perlin.h)
If you want to use the previous upgrade implementation of https://github.com/A1essandro/perlin-noise-generator you can install the 0.0.1 version
Requirements
This package is only supported on PHP 8.4 and above.
Installing
Composer
See more getcomposer.org.
Execute command
composer require cryde/noise-functions
Usage
You can check demo folder.
$size = 1024; $noise = new Noise(); $map = $noise->perlin2DArray( width: $size, height: $size, scale: 4.0, seed: 42 );
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-04