![](https://blog.studiofruitjam.com/wp-content/uploads/2018/01/arc02.png)
![](https://blog.studiofruitjam.com/wp-content/uploads/2018/01/e9f9cb3da7ea531c8fa4f5687386727f.png)
半月のような形を描いてみましょう。
中心(0,0)で半径90ポイントで270度から90度の弧です。
やってみよう いろんな角度で弧を描いてみよう
1
2
3
4
5
6 %!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 240 240
120 120 translate % 座標の原点を中央に移動
newpath % パスの初期化
0 0 80 270 90 arc % 中心(0、0)半径90で円を引く
stroke % 線を描画
![](https://blog.studiofruitjam.com/wp-content/uploads/2018/01/8439e18679ffe1bc1c062d19aa9e646b.png)
closepathで開いたパスを閉じることができます。
1
2
3
4
5
6
7
8 %!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 240 240
%%Title:パスを閉じる
120 120 translate % 座標の原点を中央に移動
newpath % パスの初期化
0 0 80 270 90 arc % 中心(0、0)半径90で円を引く
closepath % パスを閉じる
stroke % 線を描画
コメント