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.

31 lines
620 B

10 months ago
<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="new">
<node name="input_params">
<real name="new">1</real>
</node>
<node name="internal_params">
<real name="weight" />
</node>
<string name="winter_init_function">
<![CDATA[
new_init_result(new * pi())
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
r = length(p_in)
x = truncateToInt(r * (pi()))
y1 = sinh(toReal(x))
y2 = cosh(toReal(x))
in
((p_in * (y1 / y2)) * floor(r) / 2) * (-weight / pi())
]]>
</string>
</transform_def>
</user_transforms>