The actual version 1.5 of pst-marble ships with some changes and new options which are introduced within CHANGES.md (part of the package) and of course within its documentation:
The most important changes will be illustrated.
Aubrey Jaffer introduces a very powerful action "jiggle" which now replaces "wiggle".
"jiggle" needs 5 arguments in the following order:
- an angle (in degrees) $\theta$ which defines the direction of one axis.
- the period (or wave length $\lambda$) in points
- the displacement (or offset $\Omega$) in points
- A an amplitude in points
- B an amplitude in points
\[a = 360 \frac{x \sin(\theta) + y \cos(\theta) +\Omega}{\lambda}\]
\begin{align*}
x'&=x+\frac{1}{2}A\sin(a)\cdot\sin(\theta)+\frac{1}{2}B\cos(a)\cdot\cos(\theta)\\
y'&=y+\frac{1}{2}A\sin(a)\cdot\cos(\theta)-\frac{1}{2}B\cos(a)\cdot\sin(\theta)
\end{align*}
With the following parameters we get:
\[ \theta=0\quad \lambda=200\quad \Omega=-50 \quad A=0\quad B= 45 \]
\[ \theta=0\quad \lambda=200\quad \Omega=-50 \quad A=45\quad B= 0 \]
If we consider the surface as divided into parallel bands of infinitesimal width perpendicular to the $\theta$ direction, the displacements in the $\theta$ direction compress and dilate the distances between the bands.
\[ \theta=0\quad \lambda=200\quad \Omega=-50 \quad A=45\quad B=45 \]
Another quite spectacular action created by Aubrey Jaffer is "shading". It needs 4 arguments :
- an angle (in degrees) $\theta$ which defines the direction of one axis.
- the period (or wave length $\lambda$) in points
- the displacement (or offset $\Omega$) in points
- A an amplitude in points which can be different to that of "jiggle".
The command "shadings" simulate the lightening and darkening of the paint transferred to the paper by pulling the paper from the bath at uneven speeds. Shading is always done for sprays, but only when "oversample>0" is taken as option.
Ainsi :
Here some nice new marblings with the new version:
It is a fashion to draw hearts, leaves or other patterns on the surface of cream coffee, here is the one of pst-marble:
The bouquet - the psychedelic version:
To finish here is what one could obtain with a figure drawn on the surface of the bath by applying to him different actions "jiggle". We take as an example a rectangular grid on which is drawn the head of a tiger.
And now let's apply the jiggle action:
Ce commentaire a été supprimé par un administrateur du blog.
RépondreSupprimer