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.

29 lines
727 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="taffy">
<node name="input_params">
<real name="taffy">1</real>
<real name="taffy_x">0</real>
<real name="taffy_y">0</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="a" />
<real name="b" />
</node>
<string name="winter_init_function">
<![CDATA[
taffy_init_result(taffy, taffy_x, taffy_y)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
(mat2x2(sinh(p_in.x * a) * halfinvpi(), -cosh(p_in.y * a) * pi(),
cosh(p_in.x * b) * pi(), sinh(p_in.y * b) * halfinvpi()) * p_in) * (weight * (pi() / 10))
]]>
</string>
</transform_def>
</user_transforms>