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.

33 lines
764 B

<?xml version="1.0" encoding="utf-8"?>
<transform_def name="epolar">
<!-- Xform by Crystalize, based on the wonderful work of Tatasz -->
<node name="input_params">
<real name="epolar">1</real>
<real name="epolar_length" minval="0" >1</real>
<node name="internal_params">
<real name="weight" />
<real name="t" />
<string name="winter_init_function">
epolar_init_result(epolar * invpi(), epolar_length)
<string name="winter_eval_function">
tmp = dot(p_in, p_in) + t
z = complex(p_in.y, p_in.x)
result = weight * log((z * tmp) + (z * tmp))
vec2(result.im, result.re)