toosoon-lsystem
Version:
Library providing functionalities for creating and manipulating Lindenmayer systems (L-Systems) using various parameters
50 lines (49 loc) • 615 B
JavaScript
// *********************
// Symbols
// *********************
export const BRANCH_SYMBOLS = ['[', ']'];
export const PARAMETRIC_SYMBOLS = ['(', ')'];
export const DEFAULT_SYMBOLS = [
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z'
];
export const IGNORED_SYMBOLS = [
// ' ',
'+',
'-',
'&',
'^',
'/',
'|',
'\\',
'!',
'.',
'{',
'}',
...BRANCH_SYMBOLS,
...PARAMETRIC_SYMBOLS
];