canvas填充规则
生活随笔
收集整理的這篇文章主要介紹了
canvas填充规则
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
canvas填充規(guī)則
const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d');ctx.beginPath(); ctx.fillStyle='green' ctx.arc(50, 50, 30, 0, Math.PI * 2, true); ctx.arc(50, 50, 20, 0, Math.PI * 2, true); ctx.arc(50, 50, 15, 0, Math.PI * 2, true); ctx.arc(50, 50, 10, 0, Math.PI * 2, true); ctx.fill('evenodd');轉(zhuǎn)載于:https://www.cnblogs.com/ye-hcj/p/10357486.html
總結(jié)
以上是生活随笔為你收集整理的canvas填充规则的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: HTML5前端开发学习路线建议,学习前端
- 下一篇: UG NX10.0 软件安装教程