Category:Home/reference (Total 51 items)

≪ nostroke() | textmetrics() ≫

colormode()

colormode(mode, range=1.0)

NodeBoxがカラーデータを解釈する方法を変更する。
デフォルトではfill()やstroke()は0.0から1.0の値使用したRGBカラーモデルがセットされる。
RGBは、Red/Green/Blueである。
代わりに、HSB (Hue/Saturation/Brightness) もしくは CMYK (Cyan/Magenta/Yellow/Black)を指定することもできる。

どのcolormodeを指定しても、PDFやイメージはoutputomode()の指定で書き出される。

オプションのrange パラメーターは0.0から1.0で定義される値を例えば、0から255(range=255)等他の数値に変更する。

Category:Home/reference (Total 51 items)

≪ nostroke() | textmetrics() ≫

Entries in this Category
Tutorial
Library
Syndicate this site

RSS 1.0 Feed

Return to page top