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.

35 lines
814 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="bloomer">
<node name="input_params">
<real name="bloomer">1</real>
<real name="bloomer_re">1</real>
<real name="bloomer_im">1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="nre" />
<real name="nim" />
</node>
<int name="num_unit_randoms">1</int>
<string name="winter_init_function">
<![CDATA[
bloomer_init_result(bloomer, bloomer_re, bloomer_im)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
cin = complex(dot(p_in, p_in), dot(p_in, p_in))
cxy = complex(p_in.x * nre, p_in.y * nim) * pi()
bc = (cin * cxy) - cin * 2
in
vec2(bc.re, bc.im) * weight
]]>
</string>
</transform_def>
</user_transforms>