[texhax] using postscript functions

Fred Moore moorecf at gmail.com
Tue May 30 18:24:16 CEST 2006


Dear Herbert:

I should like to be able to calculate a point in a pspicture.
For example a random point, such as should be shown in
the second picture --- if it would compile.
=================================================
\noindent
\psset{unit=10pt,arrowsize=2.5pt 3}
\pspicture(0,0)(+23.5,+12.0)
\psframe[linewidth=0.4pt,linecolor=green](0,0)(+23.5,+12.0)
\parametricplot[plotpoints=500,linewidth=0.2pt,plotstyle=dots,
linecolor=blue]{0}{2}%
{rand 2350 mod 100 div rand 1200 mod 100 div}
\endpspicture

\vskip10pt
\noindent
\psset{unit=10pt,arrowsize=2.5pt 3}
\pspicture(0,0)(+23.5,+12.0)
\psframe[linewidth=0.4pt,linecolor=green](0,0)(+23.5,+12.0)
\rput({rand 2350 mod 100 div},{rand 1200 mod 100 div}){X}
\endpspicture
==================================================
Any suggestions or advice, please.

regards,
Fred
-- 
C Fred Moore,  Professor of Physics,  University of Texas
1 University Station C1600        4003 Greenmountain Lane
Austin, Texas 78712-0264         Austin, Texas  78759-7565
phone:  (512) 471-8877              phone: (512) 828-6798
FAX:    (512) 471-9637
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20060530/b7aa4f4b/attachment.htm 


More information about the texhax mailing list