()
| 2073 | // Helper to generate objects for storing active particles. |
| 2074 | // Particles are stored in arrays keyed by color (code, not name) for improved rendering performance. |
| 2075 | function createParticleCollection() { |
| 2076 | const collection = {}; |
| 2077 | COLOR_CODES_W_INVIS.forEach((color) => { |
| 2078 | collection[color] = []; |
| 2079 | }); |
| 2080 | return collection; |
| 2081 | } |
| 2082 | |
| 2083 | // Star properties (WIP) |
| 2084 | // ----------------------- |