/[gzz]/gzz/gfx/libpaper/textures.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/textures.py

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

revision 1.21 by jvk, Wed Oct 9 14:07:27 2002 UTC revision 1.22 by jvk, Wed Oct 9 14:48:20 2002 UTC
# Line 77  def init(): Line 77  def init():
77      global initialized      global initialized
78      initialized = 1      initialized = 1
79      global ptextures      global ptextures
80      ptextures["RGB2"] = map(NamedTexture, [      ptextures["RGB2"] = map(NamedTexture, filter(lambda dict: dict["name"] in [
81  #        {"name" : "rgbw1",          "rgbw1",
82  #         "args" : [tres, tres, 0, 3, "RGB", "RGB", "fnoise",          "rgbw2",
83  #                   ["scale", "2.5", "freq", "1", "df", "2", "bias", "0.5"]],          "rgbw3",
84  #         "scale" : 1./8,          "turb",
85  #         },          "pyramid",
86            "checkerboard",
87            "cone",
88            "checkerboard2",
89            "saw",
90            "triangle",
91            "stripe",
92            ], [
93            {"name" : "rgbw1",
94             "args" : [tres, tres, 0, 3, "RGB", "RGB", "fnoise",
95                       ["scale", ".43", "freq", ".75", "df", "1", "bias", "0.5", "seed", "2323" ]],
96             "scale" : 1./2,
97             },
98                    
99          {"name" : "rgbw2",          {"name" : "rgbw2",
100           "args" : [tres, tres, 0, 3, "RGB", "RGB", "fnoise",           "args" : [tres, tres, 0, 3, "RGB", "RGB", "fnoise",
101                     ["scale", ".43", "freq", "1", "df", "2", "bias", "0.5",                     ["scale", ".43", "freq", "1", "df", "1.5", "bias", "0.5" ]],
                     "seed", "1412"]],  
102           "scale" : 1./2,           "scale" : 1./2,
103           },           },
104            
105    
106            {"name" : "rgbw3",
107             "args" : [tres, tres, 0, 3, "RGB", "RGB", "fnoise",
108                       ["scale", ".43", "freq", "1", "df", "5", "bias", "0.5",
109                        "seed", "141", "aniso", "2"]],
110             "scale" : 1./2,
111             },
112    
113          {"name" : "turb",          {"name" : "turb",
114           "args" : [tres, tres, 0, 3, "RGB", "RGB", "fnoise",           "args" : [tres, tres, 0, 3, "RGB", "RGB", "fnoise",
115                     ["turb", "1", "scale", ".3", "freq", "1",                     ["turb", "1", "scale", ".3", "freq", "1",
116                      "freq2", "100", "df", "2", "bias", "0"]],                      "freq2", "100", "df", "1", "bias", "0"]],
117           "scale" : 1./8,           "scale" : 1./8,
118           },           },
119                    
# Line 144  def init(): Line 163  def init():
163           "minfilter" : "NEAREST",           "minfilter" : "NEAREST",
164           "magfilter" : "NEAREST",           "magfilter" : "NEAREST",
165           },           },
166          ])          ]))
167            
168  def getPaperTexture(type, gen):  def getPaperTexture(type, gen):
169      return selectRandom(ptextures[type], gen)      return selectRandom(ptextures[type], gen)

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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