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.

Custom Graphics••Simple customizationHigher level customization(Do you see why our earlier construction <strong>with</strong> \pscustom worked? There wehad three paths, <strong>with</strong> the beginning of each path the same as the current point).So, what’s the way out? <strong>PSTric</strong>ks also has a command \psarcn (“n”for negative) which draws the arc of a circle in the clockwise direction.Thus \psarc(0,0){1.5}{210}{330} and \psarcn(0,0){1.5}{330}{210}produce the same curve, but drawn in opposite directions:Online L A TEX TutorialPart II – Graphics<strong>PSTric</strong>ks\psarc(0,0){1.5}{210}{330}\psarcn(0,0){1.5}{330}{210}Now we can easily draw the crescent:\begin{pspicture}(-1.5,-2)(1.5,0.5)\pscustom[fillstyle=solid,%fillcolor=Lavender,%linecolor=Red]{%\psarc(0,0){1.5}{150}{30}\psarcn(0,1.5){1.5}{330}{210}}\end{pspicture}Here’s another example, using \psarcnE Krishnan, CV Radhakrishnan and AJ Alexconstitute the <strong>graphics</strong> tutorial team. Commentsand suggestions may be mailed totutorialteam@tug.org.inc○2004, The Indian TEX Users GroupThis document is generated by PDFTEX <strong>with</strong>hyperref, pstricks, pdftricks and pdfscreenpackages in an intel PC running GNU/LINUXand is released under LPPLThe Indian TEX Users GroupFloor III, SJP Buildings, Cotton HillsTrivandrum 695014, INDIAhttp://www.tug.org.in 11/23

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

Saved successfully!

Ooh no, something went wrong!