12.07.2015 Views

graphics with PSTric..

graphics with PSTric..

graphics with PSTric..

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.2. More colorsSome dvi drivers support a named color model, which means in practicalterms that you can use the names of a certain set of predefined colors. Forexample, the dvips offers 64 colors as listed in the Figure 2.1. To use thesecolors, load the package pstcol <strong>with</strong> the option usenames asColorful TricksOrdinary colorsMore colorsFill—in styleCustom colorsFrom one color to another\usepackage[usenames]{pstcol}Then for example, <strong>with</strong> the code given below, you can produce the pictureshown alongside:\begin{pspicture}(0,0)(3,3)\psframe[linestyle=none, fillstyle=solid,fillcolor=Apricot](0,0)(2,2)\pspolygon[linestyle=none,fillstyle=solid,fillcolor=Tan](0,2)(2,2)(3,3)(1,3)\pspolygon[linestyle=none,fillstyle=solid,fillcolor=Mahogany](2,0)(3,1)(3,3)(2,2)\end{pspicture}Online L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ksc○2002, 2003, The Indian T E X Users GroupThis document is generated by PDFT E X <strong>with</strong>hyperref, pstricks, pdftricks and pdfscreenpackages on an intel PC running GNU/LINUXand is released under LPPLThe Indian T E X Users GroupFloor iii, sjp Buildings, Cotton HillsTrivandrum 695014, indiahttp://www.tug.org.in£ ¡ ¢ ¤ ¥ ¦ © 7/19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!