/[gzz]/gzz/gfx/demo/fillets.py
ViewVC logotype

Diff of /gzz/gfx/demo/fillets.py

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

revision 1.8 by tjl, Fri Oct 4 22:16:34 2002 UTC revision 1.9 by tjl, Mon Oct 7 07:40:03 2002 UTC
# Line 204  class AlphaBlendScene2: Line 204  class AlphaBlendScene2:
204          wid, h = (600, 600)          wid, h = (600, 600)
205          l = 300          l = 300
206          cc=[(vs.matcher.addSub(into,          cc=[(vs.matcher.addSub(into,
207                          vs.coords.coordsys(into, d, -wid/2, -l-h, wid, h),"foo"+str(d)),                      vs.coords.coordsys(into, d, 0, -2*l, wid/2, h/2),"foo"+str(d)),
208               vs.matcher.addSub(into,               vs.matcher.addSub(into,
209                          vs.coords.coordsys(into, d, -wid/2-0.75*wid*self.movel, l, wid, h), "bar"+str(d)))                      vs.coords.coordsys(into, d, -0.75*wid*self.movel, 2*l, wid/2, h/2), "bar"+str(d)))
210                  for d in (600, 800)]                  for d in (600, 800)]
211    
212          putnoc(vs, getDList("""          putnoc(vs, getDList("""
# Line 501  class AmbiScene(AlphaCells): Line 501  class AmbiScene(AlphaCells):
501              for y in (2-dy,2,2+dy)]              for y in (2-dy,2,2+dy)]
502          cs = []          cs = []
503          for ctr in ctrs:          for ctr in ctrs:
504              coordsys = vs.coords.coordsys(0, 20, ctr[0]-w/2, ctr[1]-h/2, w, h)              coordsys = vs.coords.coordsys(0, 20, ctr[0], ctr[1], w/2, h/2)
505              vs.matcher.add(coordsys, str(dx)+str(ctr[1]))              vs.matcher.add(coordsys, str(dx)+str(ctr[1]))
506              cs.append((coordsys, ctr))              cs.append((coordsys, ctr))
507          for c in cs:          for c in cs:
# Line 519  class AmbiScene(AlphaCells): Line 519  class AmbiScene(AlphaCells):
519                  Disable TEXTURE_2D                  Disable TEXTURE_2D
520                  Color 0 0 0                  Color 0 0 0
521                  Begin LINE_STRIP                  Begin LINE_STRIP
522                  Vertex -1 -1                  Vertex 0 0
523                  Vertex 1 1                  Vertex 1 1
524                  End                  End
525                  Color 1 1 1                  Color 1 1 1

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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