createjsで弧を描く

0

    createjs.Graphics.prototype.drawCircleEx = function( x, y, radius, startAngle, endAngle ) {
        var cos = Math.cos( startAngle );
        var sin = Math.sin( startAngle );
        this.moveTo( x, y )
            .lineTo( x + radius * cos, y + radius * sin )
            .arc( x, y, radius, startAngle, endAngle );
    };

    obj.graphics.drawCircleEx(x座標,y座標,半径,スタート角radian,エンド角radian);



    selected entries

    categories

    archives

    recent comment

    recommend

    profile

    BOOKS

    links

    search this site.

    others