回答編集履歴

1

書式の改善

2015/07/22 11:50

投稿

rik
rik

score0

test CHANGED
@@ -26,21 +26,21 @@
26
26
 
27
27
  ctx\.beginPath\(\);
28
28
 
29
- var r = Math\.floor\(Math\.random\(\) \* 256\);
29
+ var r = Math\.floor\(Math\.random\(\) \* \(256\)\);
30
30
 
31
- var g = Math\.floor\(Math\.random\(\) \* 256\);
31
+ var g = Math\.floor\(Math\.random\(\) \* \(256\)\);
32
32
 
33
- var b = Math\.floor\(Math\.random\(\) \* 256\);
33
+ var b = Math\.floor\(Math\.random\(\) \* \(256\)\);
34
34
 
35
- var y = Math\.floor\(Math\.random\(\) \* 550\);
35
+ var y = Math\.floor\(Math\.random\(\) \* \(550\)\);
36
36
 
37
- var x = Math\.floor\(Math\.random\(\) \* 750\);
37
+ var x = Math\.floor\(Math\.random\(\) \* \(750\)\);
38
38
 
39
- var pi = Math\.floor\(Math\.random\(\) \* 50\);
39
+ var pi = Math\.floor\(Math\.random\(\) \* \(50\)\);
40
40
 
41
41
  ctx\.fillStyle = 'rgb\(' \+ r \+ ',' \+ g \+ ',' \+ b \+ '\)';
42
42
 
43
- ctx\.arc\(x, y, pi, 0, 360 / 180 \* Math\.PI\);
43
+ ctx\.arc\(x,y,pi,0,360/180\*Math\.PI\);
44
44
 
45
45
  ctx\.fill\(\);
46
46