[pstricks] random colour
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu Jun 15 20:30:49 CEST 2017
Am 15.06.2017 um 13:32 schrieb Alexander Grahn:
> inspired by https://tex.stackexchange.com/q/373866 I wonder whether it
> were possible to add "random"/"randomgray" as colour names to PSTricks.
>
> In the linked example, I temporarily overlayed the `setrgbcolor' built-in with my own
> definition to randomly set the stroking colour.
>
> Or is there already such a thing available which I have missed so far?
it is simple for LaTeX _and_ xcolor:
\definecolor[ps]{randomgray}{gray}{Rand}%
\definecolor[ps]{randomrgb}{rgb}{Rand Rand Rand}%
\definecolor[ps]{randomcmyk}{cmyk}{Rand Rand Rand Rand}%
will be part of the next pstricks.tex update.
Example uses "linecolor=randomrgb"
Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2017-06-15 20-29-26.png
Type: image/png
Size: 1100671 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20170615/36d32577/attachment-0001.png>
More information about the PSTricks
mailing list