gegl r2777 - in trunk/bindings/pygegl: . samples
- From: yosh svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2777 - in trunk/bindings/pygegl: . samples
- Date: Mon, 17 Nov 2008 19:49:10 +0000 (UTC)
Author: yosh
Date: Mon Nov 17 19:49:10 2008
New Revision: 2777
URL: http://svn.gnome.org/viewvc/gegl?rev=2777&view=rev
Log:
* samples/render-test.py
* samples/subgraph.py
* samples/xml-parsing.py: updated samples to use the gegl: prefixed op
names.
Modified:
trunk/bindings/pygegl/ChangeLog
trunk/bindings/pygegl/samples/render-test.py
trunk/bindings/pygegl/samples/subgraph.py
trunk/bindings/pygegl/samples/xml-parsing.py
Modified: trunk/bindings/pygegl/samples/render-test.py
==============================================================================
--- trunk/bindings/pygegl/samples/render-test.py (original)
+++ trunk/bindings/pygegl/samples/render-test.py Mon Nov 17 19:49:10 2008
@@ -13,15 +13,15 @@
height = 40
gegl = Gegl.Node()
-fractal = gegl.new_child("fractal-explorer",
+fractal = gegl.new_child("gegl:fractal-explorer",
width=width,
height=height,
ncolors=3)
-contrast= gegl.new_child("threshold", value=0.5)
-text = gegl.new_child("text",
+contrast= gegl.new_child("gegl:threshold", value=0.5)
+text = gegl.new_child("gegl:text",
string="GEGL\n\n term",
size=height/4)
-over = gegl.new_child("over")
+over = gegl.new_child("gegl:over")
fractal >> contrast >> over
text >> over["aux"]
Modified: trunk/bindings/pygegl/samples/subgraph.py
==============================================================================
--- trunk/bindings/pygegl/samples/subgraph.py (original)
+++ trunk/bindings/pygegl/samples/subgraph.py Mon Nov 17 19:49:10 2008
@@ -8,21 +8,22 @@
gegl = Gegl.Node() # create a new GEGL graph
-fractal = gegl.new_child("fractal-explorer")
+fractal = gegl.new_child("gegl:fractal-explorer")
-unsharp = gegl.new_child("unsharp-mask")
+unsharp = gegl.new_child("gegl:unsharp-mask")
in_proxy = unsharp.get_input_proxy("input")
out_proxy = unsharp.get_output_proxy("output")
-blur = unsharp.new_child("gaussian-blur", std_dev_x=5.0, std_dev_y=5.0)
-subtract = unsharp.new_child("subtract")
-add = unsharp.new_child("add")
+blur = unsharp.new_child("gegl:gaussian-blur",
+ std_dev_x=5.0, std_dev_y=5.0)
+subtract = unsharp.new_child("gegl:subtract")
+add = unsharp.new_child("gegl:add")
in_proxy >> subtract
in_proxy >> add
in_proxy >> blur >> subtract["aux"] >> add["aux"] >> out_proxy
-display = gegl.new_child("png-save", path="test.png")
+display = gegl.new_child("gegl:png-save", path="test.png")
fractal >> unsharp >> display # connect the nodes
Modified: trunk/bindings/pygegl/samples/xml-parsing.py
==============================================================================
--- trunk/bindings/pygegl/samples/xml-parsing.py (original)
+++ trunk/bindings/pygegl/samples/xml-parsing.py Mon Nov 17 19:49:10 2008
@@ -8,19 +8,19 @@
gegl = Gegl.node_new_from_xml(
"""
<gegl>
- <crop x='0' y='145' width='400' height='200'/>
- <over>
- <translate x='20' y='170' name='translate'/>
- <gaussian-blur std_dev_x='10' std_dev_y='0' name='blur'/>
- <text string='pygegl' size='110' color='rgb(0.5,0.5,1.0)'/>
- </over>
- <fractal-explorer xmin='0.2' ymin='0' xmax='0.5' ymax='0.45'
- width='400' height='400'/>
+ <gegl:display name='display'/>
+ <gegl:crop x='0' y='145' width='400' height='200'/>
+ <gegl:over>
+ <gegl:translate x='20' y='170' name='translate'/>
+ <gegl:gaussian-blur std_dev_x='10' std_dev_y='0' name='blur'/>
+ <gegl:text string='pygegl' size='110' color='rgb(0.5,0.5,1.0)'/>
+ </gegl:over>
+ <gegl:fractal-explorer xmin='0.2' ymin='0' xmax='0.5' ymax='0.45'
+ width='400' height='400'/>
</gegl>
""")
-display = gegl.new_child("display")
-gegl >> display
+display = gegl.lookup("display")
frames=30
for frame in range(frames):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]