From b6c1f61152bb1ffe0721b37e5c1d6a5a6234a0fb Mon Sep 17 00:00:00 2001 From: adplantade Date: Mon, 22 Jun 2020 16:31:49 +0200 Subject: [PATCH] =?UTF-8?q?afichage=20du=20r=C3=A9sultat=20d=C3=A8s=20le?= =?UTF-8?q?=20chargement=20de=20la=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/index.html b/code/index.html index 6260eab..e5d4b88 100644 --- a/code/index.html +++ b/code/index.html @@ -82,7 +82,7 @@ canvasT.height=height; canvasO.height=height; - function faireCercle0(x,y,color,lectx){ + function faireCercle(x,y,color,lectx){ var cercle = new Path2D(); @@ -97,7 +97,7 @@ lectx.fill(cercle); } - function drawImg(x,y,color,lectx) + function drawImg0(x,y,color,lectx) { var img= new Image(); @@ -157,10 +157,10 @@ { if(Array.isArray(pts[i])) { - drawImg(pts[i][0],pts[i][1],pts[i][2],lectx); + faireCercle(pts[i][0],pts[i][1],pts[i][2],lectx); } //else - //drawImg(pts[i][0],pts[i][1],pts[i][2],lectx); + //faireCercle(pts[i][0],pts[i][1],pts[i][2],lectx); } } } @@ -480,6 +480,8 @@ toutDessiner(tab2,canvas2,ctx2); toutDessiner(tab3,canvas3,ctx3); toutDessiner(tab4,canvas4,ctx4); + empiler(); + toutDessiner(tabTotal,canvasT,ctxT);