GUI

new GUI(template)

Parameters:
NameTypeDescription
templateObject

A set of name/object pairs, one per UI element

Example
const gui = new GUI ({
    opacity: {
        slider: [canvas.opacity, [0, 1, 0.1]],
        cmd: val => canvas.setOpacity(val),
    },
    download: {
        button: () => util.downloadBlob(data, 'data.json', false),
    },
    ...
})