App-GUI-Harmonograph
view release on metacpan or search on metacpan
only one. For instance the X pendulum has only influence on the x
coordinate of a dot, it is computed: "x = radius * cos (time)". The
first selector allows you to swap out the cosine function. Instead you
could get sine, tangent, cotangent, secant, cosekcant and the hyperbolic
twin of the already mentioned functions.
The second selector has five options: "= + - * /". If you choose the
first (equal sign) your time variable will be just swapped out with
another variable. The other four option describe the operation that will
be applied upon you time value. So e.g. if you select plus the resulting
formula will be "x = radius * cos (time + (...))". The allude to
whatever you will choose with the next three selectors.
Selector three and four are just factors. They contain natural numbers
and natural constants you can multiply the variable with. And last not
least selector five holds the variables time frequency and
radus/amplitude of each pendulum. This allows you for instance add the
(always) current pendulum frequency of pendulum W to the time value of
Pendulum X resulting in unpredictable shapes. There is lot to explore.
Pendulum W affects the x and y coordinate, hence it has two rows for
lib/App/GUI/Harmonograph.pm view on Meta::CPAN
of a pendulum. Because all ten rows are built the same I will explain only
one. For instance the X pendulum has only influence on the x coordinate
of a dot, it is computed: C<x = radius * cos (time)>. The first selector
allows you to swap out the cosine function. Instead you could get sine,
tangent, cotangent, secant, cosekcant and the hyperbolic twin of the
already mentioned functions.
The second selector has five options: "= + - * /". If you choose the
first (equal sign) your time variable will be just swapped out with another
variable. The other four option describe the operation that will be applied
upon you time value. So e.g. if you select plus the resulting formula
will be C<x = radius * cos (time + (...))>. The allude to whatever you
will choose with the next three selectors.
Selector three and four are just factors. They contain natural numbers
and natural constants you can multiply the variable with. And last not
least selector five holds the variables time frequency and radus/amplitude
of each pendulum. This allows you for instance add the (always) current
pendulum frequency of pendulum W to the time value of Pendulum X resulting
in unpredictable shapes. There is lot to explore.
( run in 0.990 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )