({ key, world, colours = {}, update = () => {} } = {})
| 44 | }; |
| 45 | |
| 46 | const createPreset = ({ key, world, colours = {}, update = () => {} } = {}) => { |
| 47 | const preset = { world, colours, update }; |
| 48 | if (key !== undefined) { |
| 49 | onkeydown(key, () => loadPreset(global, preset)); |
| 50 | } |
| 51 | return preset; |
| 52 | }; |
| 53 | |
| 54 | //=========// |
| 55 | // PRESETS // |
no test coverage detected