14.15. Maze

14.15.1. Overview

Figur 17.352. An example of a rendered maze.

An example of a rendered maze.

Filter Maze applied

This filter generates a random black and white maze pattern. The result completely overwrites the previous contents of the active layer. A typical example is shown below. Can you find the route from the center to the edge?

14.15.2. Activating the filter

This filter is found in the image window menu under FiltersRenderPatternMaze….

14.15.3. Indstillinger

Figur 17.353. Maze filter options

Maze filter options

Presets, Preview, Split view, Use selection as input
[Bemærk] Bemærk

Disse indstillinger er beskrevet i Afsnit 2, “Fælles funktioner”.

Bredde, Højde

These sliders control how many pathways the maze should have. The lower the values for width and height, the more paths you will get. The same happens if you increase the number of pieces in the Width and Height Pieces fields. The result won't really look like a maze unless the width and height are equal.

Algorithm type

You can choose between these two algorithms for maze: Depth first and Prim's algorithm. Only a computer scientist can tell the difference between them.


If you want to use it in a pattern, you can make the maze tileable by checking this check-button.


You can specify a seed for the random number generator, or ask the program to generate one for you. Unless you need to later reproduce exactly the same maze, you might as well have the program do it.

Foreground color, Background color

You can choose colors for the maze and its background. Defaults are Toolbox colors.


Dette filter kan resultere i et billede, som er større end det oprindelige. Med standardindstillingen for Justér vil lagets størrelse om nødvendigt automatisk blive ændret. Med indstillingen Klip vil resultatet blive klippet til lagets kanter.