HTML5 Canvasã使ã£ã¦ããã¼ãã£ã³ã°ç¨ã®ã¢ãã¡ã¼ã·ã§ã³ãä½æããè¶ è»½éï¼ç´3Kï¼ã®ã¹ã¯ãªãããç´¹ä»ãã¾ãã ãã¢ãã¼ã¸ Sonicã®å®è£ Squareï¼ç©å½¢ï¼ã¨Circleï¼åå½¢ï¼ãä¾ã«å®è£ æ¹æ³ãç´¹ä»ãã¾ãã å¤é¨ãã¡ã¤ã« å½ã¹ã¯ãªãããå¤é¨ãã¡ã¤ã«ã¨ãã¦æå®ãã¾ãã <script src="sonic.js"></script> JavaScript: Squareï¼ç©å½¢ï¼ ãã¨ã¯ãJavaScriptã§è¨è¿°ããã ãã§ãã var square = new Sonic({ width: 100, height: 100, fillColor: '#000', path: [ ['line', 10, 10, 90, 10], ['line', 90, 10, 90, 90], ['line', 90, 90, 10, 90], ['line', 10, 90, 10, 10]
{{#tags}}- {{label}}
{{/tags}}