HTML5 å¨canvasä¸ç»å¶ç©å½¢éææå¾_html5æç¨æå·§
程序员文章站
2022-03-28 13:35:12
...
ä¸ãç»å¶ç©å½¢
canvas使ç¨åç¹(0,0)å¨å·¦ä¸è§çåæ ç³»ç»ï¼xåæ åå³éå¢ï¼yåæ åä¸éå¢ã
使ç¨ç»å¾ç¯å¢çç©å½¢ç»å¶å½æ°æ¥ç»å¶ç©å½¢ã
fillRect(x,y,width,height) ï¼ ç»å¶ä¸ä¸ªå®å¿çç©å½¢ã
strokeRect(x,y,width,height) ï¼ ç»å¶ä¸ä¸ªç©ºå¿çç©å½¢ã
clearRect(x,y,width,height) ï¼ æ¸ é¤æå®çç©å½¢åºåï¼ä½¿ä¹å®å ¨éæã
äºãå¨canvasä¸ç»å¶ç©å½¢
HTML5
ä¸ãç»å¶ææ
canvas使ç¨åç¹(0,0)å¨å·¦ä¸è§çåæ ç³»ç»ï¼xåæ åå³éå¢ï¼yåæ åä¸éå¢ã
使ç¨ç»å¾ç¯å¢çç©å½¢ç»å¶å½æ°æ¥ç»å¶ç©å½¢ã
fillRect(x,y,width,height) ï¼ ç»å¶ä¸ä¸ªå®å¿çç©å½¢ã
strokeRect(x,y,width,height) ï¼ ç»å¶ä¸ä¸ªç©ºå¿çç©å½¢ã
clearRect(x,y,width,height) ï¼ æ¸ é¤æå®çç©å½¢åºåï¼ä½¿ä¹å®å ¨éæã
äºãå¨canvasä¸ç»å¶ç©å½¢
å¤å¶ä»£ç
代ç å¦ä¸:ä¸ãç»å¶ææ
下一篇: nginx 简介篇