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.

Curvy Tricks4.4. A new curveAnother type of curve we can draw <strong>with</strong> <strong>PSTric</strong>ks is the so called Béziercurve (named after Pierre Bézier, who realized their importance in computeraideddesign). This is done by the command \psbezier command and wemust specify four “control” points. Look at the example below:Open and closed curvesInvisible endsCurve tweakingA new curve5\begin{pspicture}(0,-1)(5,6)\psbezier[linecolor=Blue]%(1,2.5)(2,3.5)%(3,0.5)(4,4)\end{pspicture}4321Online L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ks00 1 2 3 4 5Let’s try showpoints=true on this.\begin{pspicture}(0,-1)(5,6)\psbezier[linecolor=Blue,%showpoints=true]%(1,2.5)(2,3.5)%(3,0.5)(4,4)\end{pspicture}5432100 1 2 3 4 5E Krishnan, CV Radhakrishnan and AJ Alexconstitute the <strong>graphics</strong> tutorial team.Comments and suggestions may be mailed totutorialteam@tug.org.inc○2002, 2003, The Indian T E X Users GroupThis document is generated by PDFT E X <strong>with</strong>hyperref, pstricks, pdftricks and pdfscreenpackages in 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 14/16

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

Saved successfully!

Ooh no, something went wrong!