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"?>
<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 name="internal_params">
<real name="weight" />
<real name="nre" />
<real name="nim" />
<int name="num_unit_randoms">1</int>
<string name="winter_init_function">
bloomer_init_result(bloomer, bloomer_re, bloomer_im)
<string name="winter_eval_function">
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
vec2(bc.re, bc.im) * weight