xforms for Chaotica
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<transform_def name="pulsar">
<!-- based on an Apophysis variation by FarDareisMai -->
<node name="input_params">
<real name="pulsar">1</real>
<real name="pulsar_freqx" demoval="5">2</real>
<real name="pulsar_freqy" demoval="7">0.005</real>
<real name="pulsar_scalex" demoval="1">1</real>
<real name="pulsar_scaley" demoval="1">1</real>
<node name="internal_params">
<real name="weight" />
<real name="freqx" />
<real name="freqy" />
<real name="scalex" />
<real name="scaley" />
<string name="winter_init_function">
pulsar_init_result(pulsar, pulsar_freqx, pulsar_freqy, pulsar_scalex, pulsar_scaley)
<string name="winter_eval_function">
(mat2x2(cosh(p_in.x * freqx), -sin(p_in.x * freqx * pi()),
sin(p_in.y * freqy * pi()), cosh(p_in.y * freqy)) * (p_in * tanh((p_in.x * scalex) / (p_in.y * scaley)))) * weight