12.07.2015 Views

graphics with PSTric..

graphics with PSTric..

graphics with PSTric..

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.3. Fill—in styleWe’ve often used the setting fillstyle=solid in the examples above.There are various other ways of filling up closed regions, by assigning differentvalues to the parameter fillstyle. The values vlines, hlines andcrosshatch fill the region <strong>with</strong> vertical lines, horizontal lines and crisscrosslines, as shown in the example below:Colorful TricksOrdinary colorsMore colorsFill—in styleCustom colorsFrom one color to another\begin{pspicture}(0,0)(3,3)\psframe[fillstyle=crosshatch,hatchcolor=Apricot](0,0)(2,2)\pspolygon[fillstyle=hlines,hatchcolor=Tan](0,2)(2,2)(3,3)(1,3)\pspolygon[fillstyle=vlines,hatchcolor=Mahogany](2,0)(3,1)(3,3)(2,2)\end{pspicture}Online L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ksAs can be seen from this example, the color of the lines making up thefill-pattern is set by the parameter hatchcolor. We can also set the backgroundcolor using the parameter fillcolor, if we use the starred form ofthe values for the fillstyle. The example below illustrates this. Note alsothe use of the parameter hatchwidth which controls the width of the linesmaking up the pattern. Its default value is 0.8pt.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£ ¡ ¢ ¤ ¥ ¦ © 9/19

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

Saved successfully!

Ooh no, something went wrong!