秒速赛车打不开

canvas 繪制立體圓環

2019-2-5 12:34|作者: admin|查看: 15055|評論: 0|來自: 螞蟻部落

秒速赛车打不开FENXIANGYIGEDAIMASHILI,TASHIXIANLEHUIZHILITIYUANHUANDEXIAOGUO。

DAIMASHILIRUXIA:

[HTML] 純文本查看 復制代碼运行代码
<!doctype html><html><head><meta charset="utf-8"><meta name="author" content="http://glbcf.cn/" /><title>螞蟻部落</title><style>canvas {  border:2px dotted #ccc;}</style></head><body><canvas id="canvas" width="550" height="450"></canvas><script type="text/javascript">var canvas = document.getElementById('canvas');var context = canvas.getContext('2d');function drawTwoArcs() {  context.beginPath();  context.arc(300, 190, 150, 0, Math.PI * 2, false);  context.arc(300, 190, 100, 0, Math.PI * 2, true);  context.fill();}function draw() {  context.shadowColor = "rgba(0,0,0,0.8)";  context.shadowOffsetX = 12;  context.shadowOffsetY = 12;  context.shadowBlur = 15;  drawTwoArcs();}context.fillStyle = "rgba(100,140,230,0.5)";draw();</script></body></html>

秒速赛车打不开RUGUODANDUHUIZHIRENHEYIGEYUANHUANBINGTIANCHONG,NEIMEXIAOGUODOUSHIWANQUANTIANCHONG。

秒速赛车打不开DANSHIWEISHENMEZHELINENGGOUSHIXIANYUANHUANXIAOGUO,XIAMIANZUOYIXIAJIESHAO。

fill()FANGFASHIYOUCANSHUDE,RUGUOBUTIANXIE,NEIMEMORENZHISHI"nonzero",ZHESHIYIGETIANCHONGGUIZE。

關于此規則具體參閱canvas非零繞組規則與奇偶規則一章節。

MINGBAIZHEGEGUIZE,NEIMEZAILIYONGYINYINGJIUKEYISHIXIANYAOQIULE。

關于陰影的使用參閱canvas 陰影設置一章節。


鮮花

握手

雷人

路過

雞蛋

最新評論

返回頂部