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.

36 lines
759 B

<?xml version="1.0" encoding="utf-8"?>
<transform_def name="bearhug">
<node name="input_params">
<real name="bearhug">1</real>
<real name="bearhug_x">1</real>
<real name="bearhug_y">1</real>
<node name="internal_params">
<real name="weight" />
<real name="ex" />
<real name="wy" />
<string name="winter_init_function">
bearhug_init_result(bearhug, bearhug_x, bearhug_y)
<string name="winter_eval_function">
m = wy * cosh(p_in.y)
n = (dot(p_in, p_in)) * ex
px = (p_in.x) * n
py = (p_in.y) * m
c = complex(px, py)
vec2(c.im, c.re) * weight