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.

37 lines
942 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="cutout">
<node name="input_params">
<real name="cutout">1</real>
<real name="cutout_a">1.6180339887498</real>
<real name="cutout_b">1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="a" />
<real name="b" />
</node>
<int name="num_unit_randoms">1</int>
<string name="winter_init_function">
<![CDATA[
cutout_init_result(cutout, cutout_a, cutout_b)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
c1 = (a * b) / log(dot(p_in, p_in))
c2 = log(dot(p_in, p_in)) * ((p_in.x / a) * (p_in.y / b))
r1 = toReal(truncateToInt(cosh(c1))) * (p_in.x / p_in.y)
r2 = toReal(truncateToInt(sinh(c2))) * (p_in.y / p_in.x)
n = tanh(r1 * r2)
in
((p_in * n) * weight) * tanh(a * b) * quartpi()
]]>
</string>
</transform_def>
</user_transforms>