MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / loadPresetName

Function loadPresetName

source/preset.js:12–18  ·  view source on GitHub ↗
(global, presetName)

Source from the content-addressed store, hash-verified

10//========//
11const PRESET = {};
12export const loadPresetName = (global, presetName) => {
13 const preset = PRESET[presetName];
14 if (preset === undefined) {
15 throw new Error(`Could not find preset: '${presetName}'`);
16 }
17 return loadPreset(global, preset);
18};
19
20export const loadPreset = (global, preset) => {
21 const { colours } = global;

Callers 1

main.jsFile · 0.90

Calls 1

loadPresetFunction · 0.85

Tested by

no test coverage detected