Load

Scene description language

Scene is described by a sequence of statements, separated by newlines or ";". Statement names are case-sensitive. Four statements are supported:

at X Y Sets current origin to the cell with coordinates X , Y . Used by the following rle commands. -- TEXT Defines description text. Several lines may be defined. Text can not contain semicolons (;). PATTERN_RLE Puts given RLE code at the current coorinates. Rle code is a standard format, used by many cellular automata simulators. b encodes empty cell,

encodes empty cell, o - alive cell,

- alive cell, $ - new line,

- new line, numbers encode repeat count of the following character. colors COLOR-LIST Sets current color palette. When adding patterns, new cell colors are taken from this pattern. COLOR-LIST can be either a ":"-separated list of any CSS colors, or the text "default". In the latter case, pattern is returned to the default. Example: colors red:#00ff00:rgb(0,0,255) .

at

colors

Effect of theandstatements lasts until they are redefined. Additional spaces and empty lines are ignored.