115 |
def getPaper(self, seed, passmask=[1,1,1,1,1,1,1], |
def getPaper(self, seed, passmask=[1,1,1,1,1,1,1], |
116 |
numcolors = 8, |
numcolors = 8, |
117 |
minlum = 80, |
minlum = 80, |
118 |
blend = 0): |
blend = 0, |
119 |
|
vecs = None): |
120 |
pap = PaperHanger() |
pap = PaperHanger() |
121 |
pap.reg = Registry() |
pap.reg = Registry() |
122 |
|
|
136 |
colors = Colors(rng.nextInt(), colors = numcolors, minlum = minlum, |
colors = Colors(rng.nextInt(), colors = numcolors, minlum = minlum, |
137 |
blend = blend) |
blend = blend) |
138 |
textures = Textures(rng.nextInt()) |
textures = Textures(rng.nextInt()) |
139 |
rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor) |
rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor, vecs = vecs) |
|
|
|
|
# Storing the repeating unit |
|
|
pap.repeatingUnit = rootrep |
|
140 |
|
|
141 |
pap.setNPasses(len(passes)) |
pap.setNPasses(len(passes)) |
142 |
|
|