Skip to content

About

The output section contains settings related to the output image, as well as some non-tileset-specific generation settings.

Fields

directory - nil, string

The directory in which to save the generated image.

Nil

If directory is nil, it defaults to the configuration directory.

String

A fully expanded path.

Example

directory = "/home/<user>/directory" (no trailing slash)

filename - nil, string

What name to give the generated .png file.

Nil

If filename is nil, it defaults to result.png.

String

Any string that can be a valid filename on your operating system.

Example

filename = "save_file.png"

height - positive number

The height of the created image, in pixels.

Example
height = 500

width - positive number

The width of the created image, in pixels.

Example
width = 500

offset - nil, bool

Wavewall adds a small amount of offset to where it places the tiles, to create a bit of variance between generations. This setting allows you to disable that behaviour.

Example
lua
offset = false

Example

lua
output = {
    filename = "not_result.png",
    directory = "/home/<user>/some/dir",
    height = 50,
    width = 1000
}