TOGoSTree4

[ About | Design | Hints ]

Configurations

The output of TOGoSTree4 is specified by a text file. This file is devided into sections, with heading that look like this:

[heading-name heading-arguments ...]

Sections that are recognised are:

Metadata Section

This section is of the form:

[metadata]
title = MY COOL TOGOSTREE4 CONFIG
author = FRED THE AWESOME DUDE

Animation Section

This section is of the form:

[animation]
config-var = value
config-var-2 = another value
...

Most parameters have reasonable defaults. Some recognised parameters and their defaults are:

Tree Parameters

These won't make sense unless you've looked at some example configs

public float baseSolidScale = 1;
public float baseSpanScale = 1;
public float baseRot = 0;
public float minSpans = 1;
public float maxSpans = 1;
public float minLength = 100;
public float maxLength = 100;
public float changeSolidScale = 0.6f;
public float changeSpanScale = 0.8f;
public float minCurve = -0.0f;
public float maxCurve = 0.0f;
public float gnarliness = 0.0f;
public float minRot = -1;
public float maxRot = 1;
public float[] baseColor = null;
public float[] changeColor = null;
public float[] randColor = null;
public float baseChildRot = 0;
public float minChildRot = 0;
public float maxChildRot = (float)(2*Math.PI);
public float minChildren = 2;
public float maxChildren = 4;
public float minChildAngle = 0.5f;
public float maxChildAngle = 0.7f;
public float tipChildScale = 0.0f;
public float tipChildRot = 0.0f;
public float subDivision = 4.0f;
public boolean mirrorChildren = false;
public boolean drawBase = false;

More parameter hints:

Scripting

(CAPITALIZED WORDS indicate variable content)

Basic Drawing

Random Numbers

Defining Functions