A generator that comes up with random art studies for you
1 var amount =[
2 '5',
3 '10',
4 '15',
5 '20',
6];
7
8function gesture() {
9 let amount =[
10 '4 5-minute',
11 '10 2-minute',
12 '20 1-minute',
13 '40 30-second'
14];
15 var type =[
16 'female',
17 'male',
18 'animal'
19];
20 var randomAmount = Math.floor(Math.random() * (amount.length));;
21 var randomType = Math.floor(Math.random() * (type.length));
22 return `<strong>Draw ${amount[randomAmount]} ${type[randomType]} gestures<strong>`;
23
24}
25
26function proportion() {
27 var ratio =[
28 '1:2',
29 '1:3',
30 '1:4',
31 '1:5',
32 '1:6',
33 '1:7',
34 '1:8',
35];
36 var randomRatio = Math.floor(Math.random() * (ratio.length));;
37return `<strong>Draw someone with a ${ratio[randomRatio]} head to body ratio </strong>`;
38}
39
40function anatomy() {
41 var part =[
42 'heads',
43 'eyes',
44 'noses',
45 'ears',
46 'lips',
47 'torsos',
48 'arms',
49 'hands',
50 'legs',
51 'feet',
52];
53 var randomAmount = Math.floor(Math.random() * (amount.length));;
54 var randomPart = Math.floor(Math.random() * (part.length));
55 return `<strong>Draw ${amount[randomAmount]} ${part[randomPart]}</strong>`;
56
57}
58
59function newGesture() {
60 document.getElementById('studyDisplay').innerHTML = gesture();
61}
62
63function newProportion() {
64 var randomNumber = Math.floor(Math.random() * (proportion.length));
65 document.getElementById('studyDisplay').innerHTML = proportion();
66}
67
68function newAnatomy() {
69 document.getElementById('studyDisplay').innerHTML = anatomy();
70
71}