Bonjour à tous,
J'aurais voulu savoir si certain d'entre vous avez déjà utilisé jCanvaScript.js.
J'aimerais utiliser le cas numéro 4 : line(array points, string color, bool fill) mais je n'y arrive pas ...
Voila le code :
Lors de l’exécution il m'affiche simplement "1", sauriez vous pourquoi?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <html> <head> <script type="text/javascript" src="LeJSTelecharge.js"> </script> <script type="text/javascript"> function onload_4(idCanvas) { alert("1"); jc.start(idCanvas); alert("2"); var arr1=[[60,20],[75,132],[220,60],[200,100]]; jc.line(arr1,'rgba(12,253,65,0.7)',1); jc.start(idCanvas); } </script> <head> <body> <canvas id="canvas_4" width="250px" height="250px"></canvas> <INPUT TYPE="BUTTON" VALUE="Generer" onclick="onload_4('canvas_4')"> </body> </html>







Répondre avec citation



Pas de question technique par MP !



Partager