HTML5¼¼Êõ

canvas¶ÔÏóarcToº¯ÊýµÄʹÓÃ-¶ÝµØÁú¾í·ç - ¶ÝµØÁú¾í·ç

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2016-09-07 10:00 ÎÒÒªÆÀÂÛ( )

(-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º¯ÊýÖ¸

(-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λÓÚÇеãÉÏÃæ»òλÓÚÇеãÏÂÃ棬Բ»¡µÄÖյ㶼»áÊÇÇеã

×ø±êµã¿ÉÒÔ²»·ÅÔÚ»­²¼ÀïŶ£¡

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • ¡¾¸ß¼¶¹¦ÄÜ¡¿Ê¹ÓÃcanvasÔªËØ£¨µÚÒ»²¿·Ö£© - Luka.Ye

    ¡¾¸ß¼¶¹¦ÄÜ¡¿Ê¹ÓÃcanvasÔªËØ£¨µÚÒ»²¿·Ö£© - Luka.Ye

    2016-08-27 10:00

  • canvas ÖÆ×÷flappy bird£¨ÏñËØСÄñ£©È«Á÷³Ì - ÐÜèºÇºÇßÕ

    canvas ÖÆ×÷flappy bird£¨ÏñËØСÄñ£©È«Á÷³Ì - ÐÜèºÇºÇßÕ

    2016-08-26 11:01

  • html5 canvasÊ×ÆÁ×ÔÊÊÓ¦±³¾°¶¯»­Ñ­»·Ð§¹û´úÂë - ÉÏÉÆÈçË®211

    html5 canvasÊ×ÆÁ×ÔÊÊÓ¦±³¾°¶¯»­Ñ­»·Ð§¹û´úÂë - ÉÏÉÆÈçË®211

    2016-08-23 16:00

  • html5ѧϰ±Ê¼Ç5--API Range¶ÔÏó(¶þ) - tuohaibei

    html5ѧϰ±Ê¼Ç5--API Range¶ÔÏó(¶þ) - tuohaibei

    2016-08-18 15:00

ÍøÓѵãÆÀ
¼