简介 目录 评价 推荐
  • 慕桂英7388928 2025-06-15

    如何计算弧度的半径

    0赞 · 0采集
  • qq_慕丝6346004 2022-04-06

    http://img4.mukewang.com/624d080b000143cf17260970.jpg推导图

    0赞 · 0采集
  • 论斤烤 2020-12-08

    C点为大体估计点,依此确定出R

    C,B为两个控制点

    截图
    0赞 · 0采集
  • 慕瓜0079440 2019-10-02

    6-3 绘制一角弯月

    截图
    0赞 · 0采集
  • 23568 2018-10-11

    <!DOCTYPE html>

    <html>

    <head>

        <meta charset="UTF-8">

        <title>canvas</title>

    </head>

    <body>

        <canvas id="canvas" width="1024" height="768"></canvas>

    <script>

        var canvas = document.getElementById('canvas');

        canvas.width = 800;

        canvas.height = 800;

        var ctx = canvas.getContext('2d');

        fillMoon(ctx, 2, 400, 400, 300, 0);


        function fillMoon(ctx, d, x, y, R, rot, fillColor = '#fb5') {

            ctx.save();

            ctx.translate(x, y);

            ctx.rotate(rot * Math.PI / 180);

            ctx.scale(R, R);

            pathMoon(ctx, d);

            ctx.fillStyle = fillColor;

            ctx.fill();

            ctx.restore();

        }


        function pathMoon(ctx, d) {

            ctx.beginPath();

            ctx.arc(0, 0, 1, Math.PI/2, 3*Math.PI/2, true);

            ctx.moveTo(0, -1);

            ctx.arcTo(d, 0, 0, 1, (Math.sqrt(1+d*d)) /d);

            ctx.closePath();

        }


        function dis(x1, y1, x2, y2) {

            return Math.sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));

        }



    </script>

    </html>


    3赞 · 1采集
  • 阿旗_健身狂人 2018-01-03
    对比吧
    截图
    1赞 · 0采集
  • qq_青山尚葱_03442614 2017-05-23
    弯月OA长度计算
    截图
    0赞 · 2采集
  • 雲_音 2017-04-22
    绘制月亮代码举例
    截图
    0赞 · 1采集
  • 雲_音 2017-04-22
    绘制月亮函数计算
    截图
    0赞 · 0采集
  • 小鹿小白 2017-02-19
    如何计算半径
    截图
    0赞 · 0采集
  • 红书包 2016-12-14
    月亮的圆心
    截图
    0赞 · 0采集
  • 凉如此季 2016-11-27
    画月亮
    截图
    0赞 · 0采集
  • Mountain_ 2016-11-15
    画月亮实现复用
    截图
    0赞 · 0采集
  • Aug 2016-10-17
    圆弧半径
    截图
    0赞 · 0采集
  • 遵从我心 2016-10-02
    Draw a Moon点的坐标
    截图
    0赞 · 0采集
  • 路在眼前 2016-09-07
    绘制一角弯月
    截图
    0赞 · 0采集
  • 哈喽姑娘 2016-08-09
    lineTo(x0,y0); arcTo(x1,y1,x2,y2,r); x0,y0与x1,y1构成的线,x1,y1与x2,y2构成的线,画内切圆那一段弧
    0赞 · 0采集
  • momoyy123 2016-07-15
    fillMoon
    截图
    0赞 · 0采集
  • 1号杯子 2016-07-13
    fillMOON
    截图
    0赞 · 0采集
  • lynnlty 2016-07-01
    计算内圆的半径值
    截图
    0赞 · 0采集
  • 裸奔的萝卜丝 2016-06-03
    000
    截图
    0赞 · 0采集
  • Lywwwwwvvv 2016-05-25
    完成的月亮
    截图
    0赞 · 0采集
  • Lywwwwwvvv 2016-05-25
    月亮的封装函数
    截图
    0赞 · 0采集
  • 微蓝lran 2016-03-20
    弯月的绘制计算公式
    截图
    0赞 · 0采集
  • 夕夕雨落落 2016-02-01
    感觉这节月亮的画法有点难,mark一下多看几遍
    截图
    0赞 · 0采集
  • qq_米老头_0 2015-11-29
    draw a moon
    截图
    0赞 · 1采集
  • lonelye 2015-10-21
    弯月坐标计算
    截图
    0赞 · 0采集
  • Jack_Hao 2015-08-17
    canvas绘制弯月
    截图
    0赞 · 0采集
  • 墨西哥鸡味卷 2015-08-10
    example
    截图
    0赞 · 1采集
  • 墨西哥鸡味卷 2015-08-10
    内弧半径
    截图
    0赞 · 3采集
数据加载中...
开始学习 免费