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.1. Ordinary colorsThe colors red, green, blue, cyan, magenta, yellow, black, white arepredefined in pstcol and various parts of a picture can be colored <strong>with</strong> theseby assigning these values to the various “color” parameters.Lines are colored by setting the parameter linecolor. Thus we can colorfullydistinguish the effect of linearc (do you remember this parameter?)as in the example below:Colorful TricksOrdinary colorsMore colorsFill—in styleCustom colorsFrom one color to another\begin{pspicture}(0,0)(5,2)\psline[linecolor=blue](1,1)(2,2)(3,1)(4,2)(5,1)\psline[linearc=0.5,linecolor=red](1,1)(2,2)(3,1)(4,2)(5,1)\end{pspicture}Online L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ksThe same parameter linecolor can also be used to color “solid” objectsmade <strong>with</strong> “starred” commands as in the next example:\begin{pspicture}(0,0)(3,3)\psframe*[linecolor=yellow](0,0)(3,3)\pscircle*[linecolor=green](1.5,1.5){1.5}\end{pspicture}c○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£ ¡ ¢ ¤ ¥ ¦ © 3/19

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

Saved successfully!

Ooh no, something went wrong!