- 2008-11-09 (日)
- library/type
Description
Nodebox用の最も古いライブラリの一つである。
Pixieの筆跡は、毎度異なるように見え、ミスを含み、不安定な下線で、変化する色の圧力を持つ。
筆跡はTom De Smedtの筆跡をベースにしている。
Download
略
Documentation
- How to get the library up and running
- Headings
- Paragraph text
- Doodles
- Diagrams
画像略 Pixie、WordNet、wikipediaの組み合わせ。 あらゆる与えられた問題について、無限の数の不完全な注意、計画、冗談、大言 壮語を作成。
How to get the library up and running
スクリプトと同じフォルダにpixieライブラリフォルダをおけばライブラリを見つけることができる。
また~/Library/Application Support/NodeBox/に置くことも可能である。
pixie = ximport("pixie")
Headings
heading()コマンドはテキストを太いフォントで描画させる
heading(str, x, y, width, pt=30, slant=0.0)
文字列strをポジションx,yにて与えられたline width、フォントサイズptで描画する。
コマンドはheadingの右下の角のポジションを(x,y)タプルで返す。
例
txt = "Fat trendy Pixie headers!"
pixie.heading(txt, 100, 100, 200, pt=15)
Paragraph text
text()コマンドは不完全な筆跡のブロックを描画させる。
text(str, x, y, width, pt=15, slant=0.5, line=False, serif=False)
文字列strをポジションx,yにて与えられたline width、フォントサイズptで描画する。
オプションのlineパラメータをTrueにすると、パラグラフに下線を引く。
selifをTrueにすると、テキストのキャラクタをselifに見えるようにする。
コマンドはheadingの右下の角のポジションを(x,y)タプルで返す。
例
str += "Pixie was originally a part of the Aunt Hillary code package,"
str += "a handwriting that looks different each time, contains mistakes,"
str += "has wobbly baselines and variable color pressure."
pixie.text(str, 20, 20, 200, pt=15)
tuzuku
- Newer:
- Older: ≪ Fatpath