|
|
@ -113,28 +113,8 @@ function sendToArchive() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function record_enlarge() { |
|
|
|
recordButton.position(22, 22); |
|
|
|
} |
|
|
|
|
|
|
|
function record_minimise() { |
|
|
|
recordButton.position(20, 20); |
|
|
|
} |
|
|
|
|
|
|
|
function stop_enlarge() { |
|
|
|
stopButton.position(22, 102); |
|
|
|
} |
|
|
|
|
|
|
|
function stop_minimise() { |
|
|
|
stopButton.position(20, 100); |
|
|
|
} |
|
|
|
|
|
|
|
function leaf_enlarge() { |
|
|
|
leafButton.position(22, 182); |
|
|
|
} |
|
|
|
|
|
|
|
function leaf_minimise() { |
|
|
|
leafButton.position(20, 180); |
|
|
|
function goToAbout() { |
|
|
|
window.location.href = "/about"; |
|
|
|
} |
|
|
|
|
|
|
|
function gardenShapes() { |
|
|
@ -190,25 +170,20 @@ function setupRecording() { |
|
|
|
recording = new p5.SoundFile(); |
|
|
|
|
|
|
|
recordButton = createImg("../static/images/RECORD-COLOR.png"); |
|
|
|
recordButton.position(20, 20); |
|
|
|
recordButton.mousePressed(record); |
|
|
|
recordButton.class("button"); |
|
|
|
recordButton.mouseOver(record_enlarge); |
|
|
|
recordButton.mouseOut(record_minimise); |
|
|
|
recordButton.class("button record"); |
|
|
|
|
|
|
|
stopButton = createImg("../static/images/STOP-BW.png"); |
|
|
|
stopButton.position(20, 100); |
|
|
|
stopButton.mousePressed(stop); |
|
|
|
stopButton.class("button"); |
|
|
|
stopButton.mouseOver(stop_enlarge); |
|
|
|
stopButton.mouseOut(stop_minimise); |
|
|
|
stopButton.class("button stop"); |
|
|
|
|
|
|
|
leafButton = createImg("../static/images/GARDEN-BW.png"); |
|
|
|
leafButton.position(20, 180); |
|
|
|
leafButton.class("button"); |
|
|
|
leafButton.mouseOver(leaf_enlarge); |
|
|
|
leafButton.mouseOut(leaf_minimise); |
|
|
|
leafButton.class("button leaf"); |
|
|
|
leafButton.mousePressed(gardenShapes); |
|
|
|
|
|
|
|
aboutButton = createImg("../static/images/ABOUT-BW.png"); |
|
|
|
aboutButton.mousePressed(goToAbout); |
|
|
|
aboutButton.class("button about"); |
|
|
|
} |
|
|
|
|
|
|
|
class GeneratedShape { |
|
|
|