GNU PIC

GNU PIC の出力画像を綺麗にする

GNU PIC の出力画像が綺麗でないことが不満だったが、一旦SVGファイルにしてから、png などの画像にすれば綺麗になることがわかった。 今までの画像出力 文字が滲んでいるし、曲線のギザギザも気になる。フォントを変えても文字の滲みは改善しない。 SVG に…

UMLGraph で シーケンス図

UMLGraph でシーケンス図 を書く。UMLGraphは、sequence.pic というファイルでマクロを定義しているので、それをインクルードして、マクロを利用する。 図 UMLGraph でシーケンス図actor とか object とかがマクロで定義されている。 .PS copy "sequence.pic…

GNU PIC で パッケージ図

GNU PIC でパッケージ図 を書く。 図 GNU PIC でパッケージ図 .ps 14 # font size .PS scale = 2.54; # inch -> cm define package {[ box ht 0.2 wid $3 / 3; box $1 ht $2 wid $3 with .nw at last box.sw; ]} Package1: package("Control", 1, 3); move t…

GNU PIC で 配置図

GNU PIC で配置図 を書く。 図 GNU PIC で配置図 .ps 14 # font size .PS scale = 2.54; # inch -> cm define deployment {[ box $1 width $2; line from last box.nw to last box.nw + (0.15, 0.15); line from last box.ne to last box.ne + (0.15, 0.15);…

GNU PIC で ステートチャート図

GNU PIC でステートチャート図 を書く。 図 GNU PIC でステートチャート図 .ps 14 # font size .PS scale = 2.54; # inch -> cm arrowwid=0.5; arrowhead=0; define folk {[ line right thick 2; move to last line.start; line left thick 2; ]} define joi…

GNU PIC で ユースケース図

GNU PIC でユースケース図 を書く。 図 GNU PIC でユースケース図 .ps 14 # font size .PS scale = 2.54; # inch -> cm define frame { top_mergin = $2; bottom_mergin = $3; left_mergin = $4; right_mergin = $5; line from $1.nw + (-left_mergin, top_m…

GNU PIC で アクティビティ図

GNU PIC でアクティビティ図 を書く。 図 GNU PIC でアクティビティ図 .ps 14 # font size .PS scale = 2.54; # inch -> cm arrowwid=0.5; arrowhead=0; define branch {[ box $1 ht $2 wid $3 invisible; line from last box.n to last box.e; line from la…

GNU PIC で オブジェクト図

GNU PIC でオブジェクト図 を書く。 図 GNU PIC でオブジェクト図 .ps 14 # font size .PS scale = 2.54; # inch -> cm lineht=3; linewid=3; define object {[ box "<<object>>" $1 ht $2 wid $3; box $4 ht $5 wid last box.wid with .ne at last box.se; ]} Objec</object>…

GNU PIC で クラス図

GNU PIC でクラス図 を書く。 図 GNU PIC でクラス図 .ps 14 # font size .PS scale = 2.54; # inch -> cm lineht=3; linewid=3; define class {[ box $1 ht $2 wid $3; box $4 ht $5 wid last box.wid with .ne at last box.se; box $6 ht $7 wid last box.…

GNU PIC で凡例付き DFD

GNU PIC で凡例付き DFD を書く。 図 GNU PIC で凡例付き DFD .ps 14 # font size .PS scale = 2.54; # inch -> cm arrowwid=0.25; define storage {[ box $1 wid $2 invisible; line from last box.nw to last box.ne; line from last box.sw to last box.s…

GNU PIC で DFD

GNU PIC で DFD を書く。 図 GNU PIC で DFDpic のソースは以下のとおり。 DFD.pic .ps 14 # font size .PS scale = 2.54; # inch -> cm arrowwid=0.25; define storage {[ box $1 wid $2 invisible; line from last box.nw to last box.ne; line from last …

GNU PIC 実行環境構築

GNU PIC の実行環境を構築する。pic は、Making Pictures With GNU PIC や Troff resources の pic セクションが参考になる。Troff resources の pic セクションに、ps ファイルがあるけど、ps2pdf で pdf ファイルにしておくと便利。 2011-02-24 文字の滲み…