Skip to content

Treemap Brush

Lachlan McDonald edited this page Feb 26, 2023 · 9 revisions

The treemap brush generates a treemap pattern by randomly dividing the area until a limit on the number of iterations or size is reached.

Parameters

Parameter Description
Mode Color mode (see below)
Direction Facing direction
Iterations Maximum number of iterations to perform. The number of iterations affects the size of the pattern, with smaller iterations producing larger areas, and vice versa.
Min Size Attempt to enforce a minimum size to avoid narrow or tiny areas.
Bias Values closer to 0 bias towards the X-axis, and values closer to 100 bias towards the Y-axis. A value of 50 will produce a even bias betwee both axes.
Edge Adjusts the spacing between areas. A value of 0 results in no spacing.
Seed Global seed

Mode

Example of a 'Mode' value of 0 Example of a 'Mode' value of 1 Example of a 'Mode' value of 2
Mode: 0 Mode: 1 Mode: 2
Colors and heights are selected at random Color is selected based on the hight of each area Reverse of Mode 1
Example of a 'Mode' value of 3 Example of a 'Mode' value of 4
Mode: 3 Mode: 4
Colors are distributed as a gradient Reverse of Mode 3

Iterations

Example of a 'Iterations' value of 4 Example of a 'Iterations' value of 8 Example of a 'Iterations' value of 16
Iterations: 4 Iterations: 8 Iterations: 16

Edge

Example of a 'Edge' value of 0 Example of a 'Edge' value of 20
Edge: 0 Edge: 20

Bias

Example of a 'Bias' value of 20 Example of a 'Bias' value of 50 Example of a 'Bias' value of 80
Bias: 20 Bias: 50 Bias: 80

Download

View the shaders below or download the latest release:

Clone this wiki locally