かわいいは正義
ただの日記ですよ(・ω・)
2024年7月31日水曜日
draw.io の PMOS シンボルを作る
draw.io を使おうと試行錯誤しているのだが,PMOS のシンボルが気に入らない.なのでテンプレートを元に編集して作ってみた.
<shape aspect="fixed" h="110" name="PMOS" strokewidth="inherit" w="70"> <connections> <constraint name="NE" perimeter="0" x="1" y="0" /> <constraint name="SE" perimeter="0" x="1" y="1" /> <constraint name="W" perimeter="0" x="0" y="0.5" /> </connections> <background> <save /> <ellipse h="10" w="10" x="30" y="50" /> </background> <foreground> <stroke /> <path> <move x="41" y="35" /> <line x="41" y="75" /> </path> <stroke /> <path> <move x="70" y="0" /> <line x="70" y="35" /> <line x="45" y="35" /> <line x="45" y="75" /> <line x="70" y="75" /> <line x="70" y="110" /> </path> <stroke /> <path> <move x="0" y="55" /> <line x="30" y="55" /> </path> <stroke /> <restore /> <rect /> <stroke /> <fillstroke /> </foreground> </shape>
ついでに NMOS も.
<shape aspect="fixed" h="110" name="NMOS" strokewidth="inherit" w="70"> <connections> <constraint name="NE" perimeter="0" x="1" y="0" /> <constraint name="SE" perimeter="0" x="1" y="1" /> <constraint name="W" perimeter="0" x="0" y="0.5" /> </connections> <background> <save /> </background> <foreground> <stroke /> <path> <move x="41" y="35" /> <line x="41" y="75" /> </path> <stroke /> <path> <move x="70" y="0" /> <line x="70" y="35" /> <line x="45" y="35" /> <line x="45" y="75" /> <line x="70" y="75" /> <line x="70" y="110" /> </path> <stroke /> <path> <move x="0" y="55" /> <line x="41" y="55" /> </path> <stroke /> <restore /> <rect /> <stroke /> <fillstroke /> </foreground> </shape>
ついでに,4端子版の PMOS と NMOS も作ってみた.
<shape aspect="fixed" h="110" name="PMOS4" strokewidth="inherit" w="70"> <connections> <constraint name="NE" perimeter="0" x="1" y="0" /> <constraint name="SE" perimeter="0" x="1" y="1" /> <constraint name="W" perimeter="0" x="0" y="0.5" /> </connections> <background> <save /> <ellipse h="10" w="10" x="30" y="50" /> </background> <foreground> <stroke /> <path> <move x="41" y="35" /> <line x="41" y="75" /> </path> <stroke /> <path> <move x="70" y="0" /> <line x="70" y="35" /> <line x="45" y="35" /> <line x="45" y="75" /> <line x="70" y="75" /> <line x="70" y="110" /> </path> <stroke /> <path> <move x="0" y="55" /> <line x="30" y="55" /> </path> <stroke /> <path> <move x="70" y="55" /> <line x="45" y="55" /> </path> <stroke /> <restore /> <rect /> <stroke /> <fillstroke /> </foreground> </shape>
<shape aspect="fixed" h="110" name="NMOS4" strokewidth="inherit" w="70"> <connections> <constraint name="NE" perimeter="0" x="1" y="0" /> <constraint name="SE" perimeter="0" x="1" y="1" /> <constraint name="W" perimeter="0" x="0" y="0.5" /> </connections> <background> <save /> </background> <foreground> <stroke /> <path> <move x="41" y="35" /> <line x="41" y="75" /> </path> <stroke /> <path> <move x="70" y="0" /> <line x="70" y="35" /> <line x="45" y="35" /> <line x="45" y="75" /> <line x="70" y="75" /> <line x="70" y="110" /> </path> <stroke /> <path> <move x="0" y="55" /> <line x="41" y="55" /> </path> <stroke /> <path> <move x="70" y="55" /> <line x="45" y="55" /> </path> <stroke /> <restore /> <rect /> <stroke /> <fillstroke /> </foreground> </shape>
できあがりはこんな感じ.コピペして使います.
テンプレートそのものを編集できれば良いのだけれど.
参考:
draw.ioで既存図形の形を編集する
0 件のコメント:
コメントを投稿
‹
›
ホーム
ウェブ バージョンを表示
0 件のコメント:
コメントを投稿