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
1.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<transform_def name="mathplaydough2">
<node name="input_params">
<real name="mathplaydough2">1</real>
<real name="mathplaydough2_x">1</real>
<real name="mathplaydough2_y">1</real>
<real name="mathplaydough2_rotate">0</real>
<real name="mathplaydough2_a">0</real>
<real name="mathplaydough2_b">0</real>
<node name="internal_params">
<real name="weight" />
<real name="ex" />
<real name="wy" />
<real name="rotate" />
<real name="ay" />
<real name="be" />
<string name="winter_init_function">
mathplaydough2_init_result(mathplaydough2, mathplaydough2_x,mathplaydough2_y, mathplaydough2_rotate, mathplaydough2_a, mathplaydough2_b)
<string name="winter_eval_function">
mat2x2(cos(rotate), -sin(rotate),
sin(rotate), cos(rotate)) * ((sin(p_in.x) * (p_in * ay) * ex) + (sin(p_in.y) * (p_in * be) * wy)) * weight