All documentation, which i managed to find, is limited to this gist and actual game files.

Well, practice is the best of all instructors, here we go:

Code: Select all

```
data:extend{
{
type = "noise-expression",
name = "default-elevation",
expression = noise.define_noise_function(
function(x, y, tile, map)
return make_basis_noise_function(map.seed, 11)(x, y)
end
),
}
}
```

I will try to offset values:

Code: Select all

```
function(x, y, tile, map)
return make_basis_noise_function(map.seed, 11)(x, y) - 0.5
end
```

But

Code: Select all

```
function(x, y, tile, map)
return make_basis_noise_function(map.seed, 11)(x, y, 0.5, 1) - 0.5
end
```

Can someone explain what's going on?

//sidenote: make_basis_noise_function() is single place where outscale argument is before inscale, even its anonymous return looks opposite.

//sorry for my poor english