diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..b734202 Binary files /dev/null and b/.DS_Store differ diff --git a/Icons/.DS_Store b/Icons/.DS_Store new file mode 100644 index 0000000..6672a1d Binary files /dev/null and b/Icons/.DS_Store differ diff --git a/Icons/erase.svg b/Icons/erase.svg new file mode 100644 index 0000000..7a584b4 --- /dev/null +++ b/Icons/erase.svg @@ -0,0 +1,13 @@ + + \ No newline at end of file diff --git a/Icons/wave.svg b/Icons/wave.svg new file mode 100644 index 0000000..43b456f --- /dev/null +++ b/Icons/wave.svg @@ -0,0 +1,13 @@ + + \ No newline at end of file diff --git a/Icons/zigzag.svg b/Icons/zigzag.svg new file mode 100644 index 0000000..84a0782 --- /dev/null +++ b/Icons/zigzag.svg @@ -0,0 +1,13 @@ + + \ No newline at end of file diff --git a/drawing.js b/drawing.js index d14728d..6b910ea 100644 --- a/drawing.js +++ b/drawing.js @@ -1,7 +1,6 @@ var x, y - -var WIDTH = 640 -var HEIGHT = 300 +var WIDTH = 900 +var HEIGHT = 900 var viz, sketch var audioLoaded = false const STATE_AUDIO = 0 @@ -14,6 +13,7 @@ function createLines (offsetX, offsetY) { } var bgColor = '#dbd8e3' +//how can i set this bgColor to 0% opacity?// function setup () { cursor(CROSS) if (windowHeight < HEIGHT) { @@ -38,9 +38,9 @@ function draw () { if (state < STATE_AUDIO) { viz.background(bgColor) - viz.textSize(32) - viz.fill(150) - viz.text('Preparing stuff', WIDTH / 2 - 100, HEIGHT / 2) + viz.textSize(20) + viz.fill(300) + viz.text('Preparing stuff', WIDTH / 2 - 60, HEIGHT / 2) image(viz, 0, 0, WIDTH, HEIGHT) return } @@ -48,9 +48,9 @@ function draw () { if (state < STATE_DRAW) { viz.background(bgColor) - viz.textSize(32) - viz.fill(150) - viz.text('Draw something here', WIDTH / 2 - 150, HEIGHT / 2) + viz.textSize(20) + viz.fill(300) + viz.text('Scribble, quibble, dribble, you know what to do. Hit spacebar when you’re done.', WIDTH / 2 - 300, HEIGHT / 2) image(viz, 0, 0, WIDTH, HEIGHT) return } @@ -117,6 +117,7 @@ var eraser = document.querySelector('#toolbox__eraser') var tool = 0 // 0 = pen, 1 = eraser + pencil.onclick = function (e) { tool = 0 eraser.classList.remove('toolbox__item--selected') diff --git a/index.html b/index.html index b7843c0..344524e 100644 --- a/index.html +++ b/index.html @@ -14,31 +14,31 @@
- Select tool -
- - - + -