Browse Source

3.141592653589 (bis)

master
quegzacov 2 years ago
parent
commit
d0ab3603aa
  1. 2
      script.js

2
script.js

@ -10,7 +10,7 @@ function draw_roulette(nb_person, x, y){
new_path.setAttribute('fill', 'green');
new_path.setAttribute('d', "M 200 200 A 50 50 0 0 1 " + coo_arr[0] + " " + coo_arr[1] + " L 250 200 Z");
svg.appendChild(new_path);
document.getElementsByTag('body')[0].appendChild(svg);
document.getElementsByTagNames('body')[0].appendChild(svg);
console.log(svg)
console.log(new_path.getAttribute('d'));
}

Loading…
Cancel
Save