[pstricks] PSTricks Digest, Vol 166, Issue 1

Field, Malcolm Field.Malcolm at epa.gov
Thu Dec 1 19:07:21 CET 2016


Thank you.

Cheers,

Malcolm


-----Original Message-----
From: PSTricks [mailto:pstricks-bounces at tug.org] On Behalf Of pstricks-request at tug.org
Sent: Thursday, December 01, 2016 5:30 AM
To: pstricks at tug.org
Subject: PSTricks Digest, Vol 166, Issue 1

Send PSTricks mailing list submissions to
	pstricks at tug.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://tug.org/mailman/listinfo/pstricks
or, via email, send a message with subject or body 'help' to
	pstricks-request at tug.org

You can reach the person managing the list at
	pstricks-owner at tug.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of PSTricks digest..."


Today's Topics:

   1. psRandom, dotsyle, and psBall (Field, Malcolm)
   2. Re: psRandom, dotsyle, and psBall (Herbert Voss)


----------------------------------------------------------------------

Message: 1
Date: Wed, 30 Nov 2016 18:04:24 +0000
From: "Field, Malcolm" <Field.Malcolm at epa.gov>
To: "pstricks at tug.org" <pstricks at tug.org>
Subject: [pstricks] psRandom, dotsyle, and psBall
Message-ID:
	<MWHPR09MB1518674F59B92048FE0846E2FF8C0 at MWHPR09MB1518.namprd09.prod.outlook.com>
	
Content-Type: text/plain; charset="us-ascii"

Hello,

I am preparing a figure in which I use \psRandom to add a selected number of dots to a rectangle.  However, I would like to use the same routine(s) with \psBall instead of dots because I want a 3D effect.  Is there a way to do this?  The basic code I am using is:

\psRandom[dotsize=4.5ex,dotstyle=Circle,linecolor=black,fillcolor=green!80!blue!30,randomPoints=2000,fillstyle=solid](16,17){
\psframe[linecolor=black](8.5,2.5)(13,10.5)}

but I would like to replace "dotstyle=Circle" with "dotstyle=\psBall" although I know that if it is possible to use \psBall, it isn't as simple as listed here.

Thank you.

Cheers,

Malcolm Field


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20161130/8cc8c28c/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 1 Dec 2016 11:29:46 +0100
From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
To: pstricks at tug.org
Subject: Re: [pstricks] psRandom, dotsyle, and psBall
Message-ID: <187e008c-7d7a-b9ca-fcd8-a24431688ffc at FU-Berlin.DE>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Am 30.11.2016 um 19:04 schrieb Field, Malcolm:

> I am preparing a figure in which I use \psRandom to add a selected 
> number of dots to a rectangle.  However, I would like to use the same
> routine(s) with \psBall instead of dots because I want a 3D effect.  
> Is there a way to do this?  The basic code I am using is:
>
>
>
> \psRandom[dotsize=4.5ex,dotstyle=Circle,linecolor=black,fillcolor=gree
> n!80!blue!30,randomPoints=2000,fillstyle=solid](16,17){
>
> \psframe[linecolor=black](8.5,2.5)(13,10.5)}
>
>
>
> but I would like to replace ?dotstyle=Circle? with ?dotstyle=\psBall?
> although I know that if it is possible to use \psBall, it isn?t as 
> simple as listed here.

Not possible with \psRandom, but:

\documentclass{article}
\usepackage{multido,pstricks-add,pst-slpe}
\begin{document}
	
\makeatletter
\pstVerb{
	\psk at randInit srand  % initializes the random generator
	/getRandReal { rand 2147483647 div } def } \makeatother
\begin{pspicture}(-1,-1)(11,11)
\psframe*[linecolor=black!10](-1,-1)(11,11)
\multido{\iA=0+1}{100}{%
	\psBall(! getRandReal 10 mul getRandReal 10 mul){blue}{3ex}} \end{pspicture}

\end{document}


Herbert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2016-12-01 11-29-29.png
Type: image/png
Size: 76859 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20161201/6dd5327e/attachment.png>

------------------------------

Subject: Digest Footer

_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks


------------------------------

End of PSTricks Digest, Vol 166, Issue 1
****************************************



More information about the PSTricks mailing list