blackscorp/simplexnoise 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-08