/[libvob]/libvob/org/nongnu/libvob/demo/fpfont.py
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/demo/fpfont.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jvk, Tue Apr 8 13:28:31 2003 UTC revision 1.2 by tjl, Tue Apr 8 13:44:05 2003 UTC
# Line 3  from org.nongnu.libvob.gl import GL Line 3  from org.nongnu.libvob.gl import GL
3  from org.nongnu.libvob.putil.misc import *  from org.nongnu.libvob.putil.misc import *
4  from org.nongnu.libvob.putil.demokeys import *  from org.nongnu.libvob.putil.demokeys import *
5    
6  vob.AbstractUpdateManager.defaultAnimationTime = 30000  vob.AbstractUpdateManager.defaultAnimationTime = 10000
7    
8  from math import sin  from math import sin
9    
# Line 88  class Scene: Line 88  class Scene:
88          self.prognum_dummylist = [ 0 for x in fp ]          self.prognum_dummylist = [ 0 for x in fp ]
89          self.key = KeyPresses(          self.key = KeyPresses(
90              self,              self,
91              SlideLin("x", 100, 30, "x coord", "Left", "Right"),              SlideLin("x", 100, 10, "x coord", "Left", "Right"),
92              SlideLin("y", 100, 30, "x coord", "Up", "Down"),              SlideLin("y", 100, 10, "x coord", "Up", "Down"),
93                SlideLin("a", 0, 15, "Rotation", "Prior", "Next"),
94              ListIndex("prognum", "prognum_dummylist", 0, "prog type", "T", "t"),              ListIndex("prognum", "prognum_dummylist", 0, "prog type", "T", "t"),
95              )              )
96    
# Line 111  class Scene: Line 112  class Scene:
112          BlendEquation MIN          BlendEquation MIN
113          """ % fpid))          """ % fpid))
114    
115          cs = vs.orthoCS(0, "a", 0, self.x, self.y, 12, 12)          cs = vs.orthoCS(0, "a", 0, self.x, self.y, 1, 1)
116    
117            cs = vs.rotateCS(cs, "b", self.a)
118                    
119          putText(vs, cs, "foobarhglkjhglkjlhgk")          for i in range(7,15):
120          putText(vs, cs, "foobarhglkjhglkejlhgk", y = 2)              csi = vs.orthoCS(cs, str(i), 0, 0, i*(i+1), i, i)
121                putText(vs, csi, "foobarhglkjhglkjlhgk")
122                    
123          putnoc(vs, getDListNocoords("PopAttrib"))          putnoc(vs, getDListNocoords("PopAttrib"))
124    
125    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26