The new version 1.0 is available on CTAN:
A copy of that version with some examples is also uploaded here (the zip file contains all necessary):
pst-marble is PSTricks package containing the work of Aubrey Jaffer and collaborated with Jürgen Gilg and Manuel Luque with the agreement of Aubrey Jaffer. On his website you'll find numerous documents and links for the theory of marbling.
Initially in a tank filled with a liquid, there are drops of colors that the artist projects with a brush on the surface (a little random, even if we can locate them on a given region) and whose size depends on the brush. He performs the operation several times with other colors and also brushes of different sizes. Then with a stylus the artist can draw lines, circles, ripples, effects of swirls. Depending on the speed, the viscosity of the medium, and the diameter of the stylet, the drops undergo deformations that will create a marbling. The artist then places a sheet of paper on the surface to get the marbled paper. Instead of a stylus, he can use a comb with a variable number of teeth to perform the same operations as with the stylus. With each action, the state of the surface is memorized. The drawing can thus be modified by depositing new drops and then performing other actions.
It is by applying the laws of fluid mechanics that Aubrey Jaffer and other computer scientists have attempted to model the formation of marblings.
For example;
Randomly distribute 1000 drops with variable radii and colors on the surface of a liquid,
trace with a stylus some bows of a circle with the center at O and increasing radii which alternate in their directions :
\documentclass[pstricks]{standalone}
\usepackage{pst-marble}
\begin{document}
\begin{pspicture}(-5,-7)(5,7)
\psMarble[
background=1 1 0.9,
viscosity=1000,
actions={
12 1000 random-drops-colors
/signe 1 def
100 100 1000 {/radius exch def
[0 0 [radius] 10 60 signe mul 50 /stir]
/signe signe neg def
} for
}](10,14)
\end{pspicture}
\begin{pspicture}(-5,-7)(5,7)
\psMarble[
background=1 1 0.9,
viscosity=1000,
actions={
12 1000 random-drops-colors
/signe 1 def
100 100 1000 {/radius exch def
[0 0 [radius] 10 60 signe mul 50 /stir]
/signe signe neg def
} for
[ 90 [ -400 200 600 {} for ] 40 200 31 /rake]
[-90 [ -500 200 600 {} for ] 40 200 31 /rake]
[ 0 {2 mul sin 20 mul} /wiggle]
}](10,14)
\end{pspicture}
\end{document}
The documentation is part of the package and following are presented a few example from it:
The compilation of the examples will be done according to the usual procedure:
LaTeX->dvips->ps2pdf
Aucun commentaire:
Enregistrer un commentaire