draw-ellipse-2d:用贝塞尔曲线绘制椭圆

时间:2021-07-03 07:51:54
【文件属性】:
文件名称:draw-ellipse-2d:用贝塞尔曲线绘制椭圆
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-03 07:51:54
JavaScript 绘制椭圆2d 使用贝塞尔曲线将 2D 椭圆(椭圆形)绘制到 HTML5 画布上下文。 var position = [ 25 , 25 ] //x, y , shape = [ 100 , 25 ] //width, height context . beginPath ( ) drawEllipse ( context , position , shape ) context . stroke ( ) 用法 drawEllipse(context, position, shape) 在给定的[x, y]位置(椭圆的中心)绘制一个椭圆到context ,并在[width, height]使用给定的形状。 执照 麻省理工学院,有关详细信息,请参阅 。
【文件预览】:
draw-ellipse-2d-master
----test.js(454B)
----.npmignore(96B)
----LICENSE.md(1KB)
----README.md(783B)
----.gitignore(56B)
----index.js(863B)
----package.json(838B)

网友评论