diff --git a/voicegardens/static/images/.DS_Store b/voicegardens/static/images/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/voicegardens/static/images/.DS_Store differ diff --git a/voicegardens/static/images/ABOUT-BW.png b/voicegardens/static/images/ABOUT-BW.png new file mode 100644 index 0000000..980c392 Binary files /dev/null and b/voicegardens/static/images/ABOUT-BW.png differ diff --git a/voicegardens/static/images/ABOUT-COLOR.png b/voicegardens/static/images/ABOUT-COLOR.png new file mode 100644 index 0000000..037e61e Binary files /dev/null and b/voicegardens/static/images/ABOUT-COLOR.png differ diff --git a/voicegardens/static/images/ABOUT-COLOUR.png b/voicegardens/static/images/ABOUT-COLOUR.png deleted file mode 100644 index c684a3e..0000000 Binary files a/voicegardens/static/images/ABOUT-COLOUR.png and /dev/null differ diff --git a/voicegardens/static/images/ABOUT-WHITE.png b/voicegardens/static/images/ABOUT-WHITE.png deleted file mode 100644 index 725ef9f..0000000 Binary files a/voicegardens/static/images/ABOUT-WHITE.png and /dev/null differ diff --git a/voicegardens/static/images/CHORUS-BW.png b/voicegardens/static/images/CHORUS-BW.png new file mode 100644 index 0000000..498c2f5 Binary files /dev/null and b/voicegardens/static/images/CHORUS-BW.png differ diff --git a/voicegardens/static/images/CHORUS-COLOR.png b/voicegardens/static/images/CHORUS-COLOR.png new file mode 100644 index 0000000..e349ec1 Binary files /dev/null and b/voicegardens/static/images/CHORUS-COLOR.png differ diff --git a/voicegardens/static/images/CHORUS-COLOUR.png b/voicegardens/static/images/CHORUS-COLOUR.png deleted file mode 100644 index 51c1203..0000000 Binary files a/voicegardens/static/images/CHORUS-COLOUR.png and /dev/null differ diff --git a/voicegardens/static/images/CHORUS-WHITE.png b/voicegardens/static/images/CHORUS-WHITE.png deleted file mode 100644 index bc39ab5..0000000 Binary files a/voicegardens/static/images/CHORUS-WHITE.png and /dev/null differ diff --git a/voicegardens/static/images/GARDEN-BW.png b/voicegardens/static/images/GARDEN-BW.png new file mode 100644 index 0000000..7f26271 Binary files /dev/null and b/voicegardens/static/images/GARDEN-BW.png differ diff --git a/voicegardens/static/images/GARDEN-COLOR.png b/voicegardens/static/images/GARDEN-COLOR.png new file mode 100644 index 0000000..003dad9 Binary files /dev/null and b/voicegardens/static/images/GARDEN-COLOR.png differ diff --git a/voicegardens/static/images/GARDEN-COLOUR.png b/voicegardens/static/images/GARDEN-COLOUR.png deleted file mode 100644 index bd8b39c..0000000 Binary files a/voicegardens/static/images/GARDEN-COLOUR.png and /dev/null differ diff --git a/voicegardens/static/images/GARDEN-WHITE.png b/voicegardens/static/images/GARDEN-WHITE.png deleted file mode 100644 index e01b682..0000000 Binary files a/voicegardens/static/images/GARDEN-WHITE.png and /dev/null differ diff --git a/voicegardens/static/images/PLAY-BW.png b/voicegardens/static/images/PLAY-BW.png new file mode 100644 index 0000000..299c1c4 Binary files /dev/null and b/voicegardens/static/images/PLAY-BW.png differ diff --git a/voicegardens/static/images/PLAY-COLOR.png b/voicegardens/static/images/PLAY-COLOR.png new file mode 100644 index 0000000..56028e9 Binary files /dev/null and b/voicegardens/static/images/PLAY-COLOR.png differ diff --git a/voicegardens/static/images/PLAY-COLOUR.png b/voicegardens/static/images/PLAY-COLOUR.png deleted file mode 100644 index 49c3feb..0000000 Binary files a/voicegardens/static/images/PLAY-COLOUR.png and /dev/null differ diff --git a/voicegardens/static/images/PLAY-WHITE.png b/voicegardens/static/images/PLAY-WHITE.png deleted file mode 100644 index b81839e..0000000 Binary files a/voicegardens/static/images/PLAY-WHITE.png and /dev/null differ diff --git a/voicegardens/static/images/RECORD-BW.png b/voicegardens/static/images/RECORD-BW.png new file mode 100644 index 0000000..7447453 Binary files /dev/null and b/voicegardens/static/images/RECORD-BW.png differ diff --git a/voicegardens/static/images/RECORD-COLOR.png b/voicegardens/static/images/RECORD-COLOR.png new file mode 100644 index 0000000..e72dcab Binary files /dev/null and b/voicegardens/static/images/RECORD-COLOR.png differ diff --git a/voicegardens/static/images/RECORD-COLOUR.png b/voicegardens/static/images/RECORD-COLOUR.png deleted file mode 100644 index 8c5c0ea..0000000 Binary files a/voicegardens/static/images/RECORD-COLOUR.png and /dev/null differ diff --git a/voicegardens/static/images/RECORD-WHITE.png b/voicegardens/static/images/RECORD-WHITE.png deleted file mode 100644 index 9aaeaaf..0000000 Binary files a/voicegardens/static/images/RECORD-WHITE.png and /dev/null differ diff --git a/voicegardens/static/images/STOP-BW.png b/voicegardens/static/images/STOP-BW.png new file mode 100644 index 0000000..ffb1cae Binary files /dev/null and b/voicegardens/static/images/STOP-BW.png differ diff --git a/voicegardens/static/images/STOP-COLOR.png b/voicegardens/static/images/STOP-COLOR.png new file mode 100644 index 0000000..0d906a3 Binary files /dev/null and b/voicegardens/static/images/STOP-COLOR.png differ diff --git a/voicegardens/static/images/STOP-COLOUR.png b/voicegardens/static/images/STOP-COLOUR.png deleted file mode 100644 index 8ed5cab..0000000 Binary files a/voicegardens/static/images/STOP-COLOUR.png and /dev/null differ diff --git a/voicegardens/static/images/STOP-WHITE.png b/voicegardens/static/images/STOP-WHITE.png deleted file mode 100644 index e0b54fc..0000000 Binary files a/voicegardens/static/images/STOP-WHITE.png and /dev/null differ diff --git a/voicegardens/static/p5js/p5.dom.js b/voicegardens/static/p5js/p5.dom.js new file mode 100644 index 0000000..b860b2d --- /dev/null +++ b/voicegardens/static/p5js/p5.dom.js @@ -0,0 +1,1028 @@ +/*! p5.dom.js v0.2.0 February 2, 2015 */ +/** + *

The web is much more than just canvas and p5.dom makes it easy to interact + * with other HTML5 objects, including text, hyperlink, image, input, video, + * audio, and webcam.

+ *

There is a set of creation methods, DOM manipulation methods, and + * an extended p5.Element that supports a range of HTML elements. See the + * + * beyond the canvas tutorial for a full overview of how this addon works. + * + *

Methods and properties shown in black are part of the p5.js core, items in + * blue are part of the p5.dom library. You will need to include an extra file + * in order to access the blue functions. See the + * using a library + * section for information on how to include this library. p5.dom comes with + * p5 complete or you can download the single file + * + * here.

+ *

See tutorial: beyond the canvas] + * for more info on how to use this libary. + * + * @module p5.dom + * @submodule p5.dom + * @for p5.dom + * @main + */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) + define('p5.dom', ['p5'], function (p5) { (factory(p5));}); + else if (typeof exports === 'object') + factory(require('../p5')); + else + factory(root['p5']); +}(this, function (p5) { +// ============================================================================= +// p5 additions +// ============================================================================= + + /** + * Searches the page for an element with given ID and returns it as + * a p5.Element. The DOM node itself can be accessed with .elt. + * Returns null if none found. + * + * @method getElement + * @param {String} id id of element to search for + * @return {Object/p5.Element|Null} p5.Element containing node found + */ + p5.prototype.getElement = function (e) { + var res = document.getElementById(e); + if (res) { + return wrapElement(res); + } else { + return null; + } + }; + + /** + * Searches the page for elements with given class and returns an + * array of p5.Elements. The DOM nodes themselves can be accessed + * with .elt. Returns an empty array if none found. + * + * @method getElements + * @param {String} class class name of elements to search for + * @return {Array} array of p5.Element wrapped nodes found + */ + p5.prototype.getElements = function (e) { + var arr = []; + var res = document.getElementsByClassName(e); + if (res) { + for (var j = 0; j < res.length; j++) { + var obj = wrapElement(res[j]); + arr.push(obj); + } + } + return arr; + }; + + /** + * Helper function for getElement and getElements. + */ + function wrapElement(elt) { + if (elt.tagName === "VIDEO" || elt.tagName === "AUDIO") { + return new p5.MediaElement(elt); + } else { + return new p5.Element(elt); + } + } + + /** + * Removes all elements created by p5, except any canvas / graphics + * elements created by createCanvas or createGraphics. + * Event handlers are removed, and element is removed from the DOM. + * @method removeElements + * @example + *

+ * function setup() { + * createCanvas(100, 100); + * createDiv('this is some text'); + * createP('this is a paragraph'); + * } + * function mousePressed() { + * removeElements(); // this will remove the div and p, not canvas + * } + *
+ * + */ + p5.prototype.removeElements = function (e) { + for (var i=0; i