From 9d0566b757389cf1f34b9245368b55e8640a1cae Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 10 Jun 2019 22:16:19 +0530 Subject: [PATCH 1/2] testing again --- testing.html | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing.html diff --git a/testing.html b/testing.html new file mode 100644 index 0000000..e69de29 From 3d717682ba54f5e70fee04a33acc50829846f900 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 11 Jun 2019 17:19:55 +0530 Subject: [PATCH 2/2] Changed brush buttons to circular buttons, icons to be changed. tried to make canvas full screen --- .DS_Store | Bin 0 -> 6148 bytes Icons/.DS_Store | Bin 0 -> 6148 bytes Icons/erase.svg | 13 +++++++++ Icons/wave.svg | 13 +++++++++ Icons/zigzag.svg | 13 +++++++++ drawing.js | 19 +++++++------ index.html | 52 +++++++++++++++++------------------ style.css | 70 ++++++++++++++++++++++++++++++++++++----------- testing.html | 0 9 files changed, 129 insertions(+), 51 deletions(-) create mode 100644 .DS_Store create mode 100644 Icons/.DS_Store create mode 100644 Icons/erase.svg create mode 100644 Icons/wave.svg create mode 100644 Icons/zigzag.svg delete mode 100644 testing.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b734202f0b02f8cb49226d0fa6a1e60c42d1c7a7 GIT binary patch literal 6148 zcmeHK%Z}496us_)Ny8wz0F`AnNGwX#BC0M%BbCxwbb*A(2o`{5l1ViUN|UNdDMKmB zhJP470r4a3Sn?r!031JPGihgw5aTP^$Fa}7j*lHXCL-3Gc`c$U5gAAvOD3`{#@l(? zu!5@D1u_vMq6WR8co0M<8*E*n70?R&YYOmh*C2;xH3?`_%2SCtQ=C|H#p_qjiuA60KXj>5$8!{Jmo``!?g zS14kkgm3L>7)0SIYPp9g6!mCG@1W|45*ky$chj|AtOj0o zHp(=i_O>}-pK{C!J);A9M16V!Y#_Fmi~V!MBgQ+NQGhpUVE*F#>=m4x$1eCo@RHTq z*gA^B_nhAj9g5Y#`%x#zdd$WB9Q*c)4KCfs+QPa*pHr;kG5QZtj<-honu~nfPNW#!&@dB``FqMcJ QnEnwEGU!Yz@K+W14axb~0RR91 literal 0 HcmV?d00001 diff --git a/Icons/.DS_Store b/Icons/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6672a1d91091877630acb483a09353eb9d11cdb9 GIT binary patch literal 6148 zcmeHKF-wC%3{A8{txGo@Z*&rzU5-)*Xa9h$mLe1iN-H?s-|<)Kdr2&Q^>Y&uNg#RY zCAqurLGLaiqLa=2g~(V$hESr?=@Ab1h7Kb65U4iCLeAw$wz9ll^-S~^hq(76S;(Wz zu=7v*U*FAF>p7yN<`sJOW&)3NJR^VmUA~^|<&We=9%KnSgWYk|S>tlAhU=sx1Ia)# zkPIXPKhFT}Y|8N1F>NxC3?u_P26#RcD6s}MM>{%TtOWoLFl+*!4`$Ysz#7;b5rL?e z0=-nD#ZWKDc!|6k*c`oFG@1{Ml|Pynwbe0yv2@Yum^K+m2D%Ke_l1mk|6k!R)7#`* zN}6OK8ThXZ=wNy?o#5-@ZvFC|ylV^e7D{1WqXU88c?94G&yiCLdc4p_UJY!HoQ307 Q4$Oyu5t1eu_yq>u0c4#t)&Kwi literal 0 HcmV?d00001 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 @@ + + + + Path 3 + Created with Sketch. + + + + + + + + \ 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 @@ + + + + Path + Created with Sketch. + + + + + + + + \ 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 @@ + + + + Path 2 + Created with Sketch. + + + + + + + + \ 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 -

- - - +
+ + +
-
- -