PSTricks Quick Reference

Table of Contents

1. Generic Switches

1.1. Commands

1.1.A. Predefined Colors

1.1.B. Color Creation

1.1.C. Angles

1.2. \psset Keys

1.2.A. Dimensions



1. Generic Switches

1.1. Commands

1.1.A. Predefined Colors

\black 
\darkgray 
\gray 
\lightgray 
\white

Grayscale colors.

\red 
\green 
\blue 
\cyan 
\magenta 
\yellow

RGB colors.

1.1.B. Color Creation

\newgray{color}{num}

color : new color's name
num : grayscale specification. 0 = black, 1 = white.

\newrgbcolor{color}{numR numG numB}

color : new color's name
numR numG numB : Red-Green-Blue specification. 0 - 1.

\newhsbcolor{color}{numH numS numB}

color : new color's name
numH numS numB : Hue-Saturation-Brightness specification. 0 - 1.

\newcmykcolor{color}{numC numM numY numK}

color : new color's name
numC numM numY numK : Cyan-Magenta-Yellow-Black specification. 0 - 1.

1.1.C. Angles

\degrees[num]

num : angle of a full circle in this newly-defined unit.

\radians

short for \degrees[360].

1.2. \psset Keys

1.2.A. Dimensions

unit=dim 
xunit=dim 
yunit=dim 
zunit=dim

dim : dimension, with optional metric unit. defaults to 1cm.

linewidth=dim 
linecolor=color

dim : dimension, with optional metric unit. defaults to .8pt.
color : default or user-defined color name. defaults to black.

fillstyle=style 
fillcolor=color

style : none | solid | vlines | vlines* | hlines | hlines* | crosshatch | crosshatch*. defaults to none.
color : default or user-defined color name. defaults to black.

 


    
    

All contents of this site are made by me, Adhi Hargo, unless noted otherwise.
Seluruh halaman dalam situs ini dibuat oleh Adhi Hargo, kecuali orangnya bilang sebaliknya.