

半月のような形を描いてみましょう。
中心(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 % 線を描画 |

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 % 線を描画 |

コメント