(-1)»·¾³ËµÃ÷
ÎÒʹÓõÄä¯ÀÀÆ÷ÊÇchrome49
(1)Ïêϸ½éÉÜ
$(function() { var context = lol.getContext("2d"); context.beginPath(); context.moveTo(100,10); context.arcTo(220,10,220,110,100); context.stroke(); context.closePath(); })
¡¡¡¡
Æðµã²¢Ã»ÓÐÔÚarcToº¯ÊýÖ¸¶¨£¬¿ÉÒÔÀí½âΪÉÏÒ»×Ó·¾¶µÄÖÕµã,
context.moveTo(100,10);Ö¸¶¨ÁËÆðµãµÄλÖÃx1,y1ÓëÆðµãµÄÁ¬ÏßA£¬x1,y1Óëx2,y2µÄÁ¬ÏßB¹¹³ÉÒ»¸öÇøÓò£¬rÖ¸¶¨°ë¾¶Ëù»µÄÔ²»áÓëA£¬BÏàÇÐ
ÔÚÖ±ÏßA·½Ïò²»¸Ä±äµÄÇ°ÌáÏ£¬¸Ä±ä°ë¾¶´óС»ò¸Ä±äxÖá×ø±ê
ÐγÉÆðµãÔÚÇеã×óÃæ»òÆðµãÔÚÇеãÓÒÃæµÄÇé¿öʱ£¬ÆðµãºÍÇеãÖ®¼ä»á»æÖÆÖ±Ïß
ÔÚÖ±ÏßB·½Ïò²»¸Ã±äµÄÇé¿öÏ£¬ÐÞ¸Äy2µÄÖµ£¬Ê¹x2£¬y2λÓÚÇеãÉÏÃæ»òλÓÚÇеãÏÂÃ棬Բ»¡µÄÖյ㶼»áÊÇÇеã
×ø±êµã¿ÉÒÔ²»·ÅÔÚ»²¼ÀïŶ£¡
¡¡