PHP code example of cryde / noise-functions

1. Go to this page and download the library: Download cryde/noise-functions library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cryde / noise-functions example snippets


$size = 1024;
$noise = new Noise();
$map = $noise->perlin2DArray(
    width: $size,
    height: $size,
    scale: 4.0,
    seed: 42
);