The following table of CGA features includes information about typical constructs, CGA syntax, and helpful features. CGA operations are described in Essential shape operations.
Pass multiple strings, numbers, or Boolean values from a rule to its successors. | |
Call different successor rules based on conditions. | |
Call different successor rules at random. The likelihood of each successor can be controlled by percentages. | |
Global variables used to store values in multiple rules. You can modify them in the rule file or the Inspector window. | |
A style is a specific combination of values for a set of attributes. You can switch between styles in the Inspector window. | |
Encapsulate code so that it can be used by multiple rules. This helps to avoid duplicated code. | |
Store intermediate values in local variables. | |
Import rule files to get access to all rules, functions, and attributes. | |
Make your code easier to understand for your peer programmers (or yourself in the future). |