git @ Cat's Eye Technologies Maze-Clouds / 56e3d29
Put controls in a dedicated control panel element (a div). Chris Pressey 6 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
103103 });
104104 }
105105
106 makeButton(config.container, "Re-roll", function() {
106 var controlPanel = makeDiv(config.container);
107
108 makeButton(controlPanel, "Re-roll", function() {
107109 maze = makeMaze();
108110 redrawMaze();
109111 });
110112
111 var hueLabel = makeLabel(config.container, "Hue:")
113 var hueLabel = makeLabel(controlPanel, "Hue:")
112114 makeSlider(hueLabel, 0, 359, 180, function(v) {
113115 hue = v;
114116 redrawMaze();
115117 });
116118
117 makeSelect(config.container, "Visuals:", [
119 makeSelect(controlPanel, "Visuals:", [
118120 {
119121 text: 'Cumulus',
120122 value: 1,