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

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

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

revision 1.1 by jvk, Mon Sep 30 14:04:25 2002 UTC revision 1.2 by jvk, Mon Sep 30 16:23:21 2002 UTC
# Line 7  tex = GL.createTexture() Line 7  tex = GL.createTexture()
7    
8    
9  #tex.shade(256, 256, 0, 3, "RGB", "RGB", "fnoise",  #tex.shade(256, 256, 0, 3, "RGB", "RGB", "fnoise",
10  #          ["scale", ".5", "freq", "1", "df", "2", "bias", "0.5"])  #          ["scale", ".43", "freq", "1", "df", "2", "bias", "0.5"])
11    #tex.shade(256, 256, 0, 3, "RGB", "RGB", "fnoise",
12    #          ["scale", "2.5", "freq", "1", "df", "2", "bias", "0.5"])
13    
14    #tex.shade(256, 256, 0, 4, "RGBA", "RGBA", "geometric", ["type", "3"])
15    
 tex.shade(256, 256, 0, 4, "RGBA", "RGBA", "geometric", ["type", "3"])  
16    
17    
18    #tex.shade(256, 256, 0, 3, "RGB", "RGB", "fnoise",
19    #          ["turb", "1", "scale", ".3", "freq", "1", "freq2", "100", "df", "2", "bias", "0"])
20    
21    
22  class TexLabScene:  class TexLabScene:
23      def __init__(self):      def __init__(self):
# Line 23  class TexLabScene: Line 29  class TexLabScene:
29          putnoc(vs, background((0.5,0.5,0.5)))          putnoc(vs, background((0.5,0.5,0.5)))
30    
31    
32          cs = vs.coords.affineCoordsys(0, 1, 100, 100, 200, 0, 0, 200)          cs = vs.coords.affineCoordsys(0, 1, 100, 100, 400, 0, 0, 400)
33          vs.matcher.add(cs, "foo")          vs.matcher.add(cs, "foo")
34    
35          vs.map.put(getDList("""          vs.map.put(getDList("""

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