第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

代碼
提交代碼
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>慕課網(wǎng)Wiki</title> <style> #imooc{ border:1px solid #ccc; } </style> </head> <body> <canvas id="imooc">您的瀏覽器不支持 HTML5 canvas 標(biāo)簽</canvas> <script> const canvas = document.getElementById('imooc'); const ctx = canvas.getContext('2d'); ctx.lineWidth = 20; ctx.strokeStyle = "#456795" ctx.beginPath(); ctx.moveTo(30,30); ctx.lineTo(200,30); ctx.lineCap = "butt"; // 設(shè)置了lineCap屬性值為 butt ctx.stroke(); ctx.beginPath(); ctx.moveTo(30,80); ctx.lineTo(200,80); ctx.lineCap = "round"; // 設(shè)置了lineCap屬性值為 round ctx.stroke(); ctx.beginPath(); ctx.moveTo(30,130); ctx.lineTo(200,130); ctx.lineCap = "square"; // 設(shè)置了lineCap屬性值為 square ctx.stroke(); //下面畫兩個基準(zhǔn)線方便觀察 ctx.lineWidth = 1; ctx.strokeStyle = "red"; ctx.beginPath(); ctx.moveTo(30,0); ctx.lineTo(30,180); ctx.moveTo(200,0); ctx.lineTo(200,180); ctx.stroke(); </script> </body>
運行結(jié)果