~flypig/functy/trunk

« back to all changes in this revision

Viewing changes to examples/LensEffect.xml

  • Committer: David Llewellyn-Jones
  • Date: 2012-07-19 23:02:58 UTC
  • Revision ID: git-v1:4601f49c8e2bf40cbbe519f29bb9c2f00c9a9774
Added a few new example files for Functy and slightly offset the default 'up' direction from the z-axis for rendering curves (so that curves running along the z-axis can actually be rendered).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8' ?>
 
2
 
 
3
<functy>
 
4
        <settings>
 
5
                <show-axes bool="1"/>
 
6
                <invert bool="0"/>
 
7
                <wireframe bool="0"/>
 
8
        </settings>
 
9
        <range>
 
10
                <min>
 
11
                        <coord x="-9.995023" y="-9.995023" z="-39.980093"/>
 
12
                </min>
 
13
                <width>
 
14
                        <coord x="19.990046" y="19.990046" z="79.960185"/>
 
15
                </width>
 
16
        </range>
 
17
        <function type="cartesian">
 
18
                <equation>0.1+((((x**2)+(y**2))**(1/2))&lt;8) * ((3*((((1+cos(3.14159265*(((x**2)+(y**2))**(1/2))/8))*(1+sin(t)))))))</equation>
 
19
                <red>(((((((x**2)+(y**2))**(1/2)) &lt; 8) * ((((x**2)+(y**2))**(1/2)) &gt; (2*(1+sin(t)))) * (((((x/(((x**2)+(y**2))**(1/2))))*(  8-((8*((((x**2)+(y**2))**(1/2))-8))/((2*(1+sin(t)))-8))))*40) MOD 50) &lt; 3))+(((((x**2)+(y**2))**(1/2)) &gt; 8) * ((x * 40) MOD 50) &lt; 3))</red>
 
20
                <green>(((((((x**2)+(y**2))**(1/2)) &lt; 8) * ((((x**2)+(y**2))**(1/2)) &gt; (2*(1+sin(t)))) * (((((y/(((x**2)+(y**2))**(1/2))))*(  8-((8*((((x**2)+(y**2))**(1/2))-8))/((2*(1+sin(t)))-8))))*40) MOD 50) &lt; 3))+(((((x**2)+(y**2))**(1/2)) &gt; 8) * ((y * 40) MOD 50) &lt; 3))</green>
 
21
                <blue>1</blue>
 
22
                <alpha>((x**2)+(y**2)) &lt; 1280</alpha>
 
23
                <accuracy double="0.002000"/>
 
24
                <texture-file></texture-file>
 
25
                <texture-x-scale>1.0</texture-x-scale>
 
26
                <texture-y-scale>1.0</texture-y-scale>
 
27
                <texture-x-offset>0.0</texture-x-offset>
 
28
                <texture-y-offset>0.0</texture-y-offset>
 
29
        </function>
 
30
</functy>
 
31