[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/libpaper textures.py
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/gfx/libpaper textures.py |
Date: |
Thu, 03 Oct 2002 09:48:00 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 02/10/03 09:48:00
Modified files:
gfx/libpaper : textures.py
Log message:
Fix passmask functionality
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libpaper/textures.py.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
Patches:
Index: gzz/gfx/libpaper/textures.py
diff -c gzz/gfx/libpaper/textures.py:1.10 gzz/gfx/libpaper/textures.py:1.11
*** gzz/gfx/libpaper/textures.py:1.10 Mon Sep 30 12:23:21 2002
--- gzz/gfx/libpaper/textures.py Thu Oct 3 09:48:00 2002
***************
*** 52,58 ****
class Textures:
def __init__(self, seed):
! rnd = self.rnd = java.util.Random(seed)
hyper = rnd.nextGaussian()*5
--- 52,58 ----
class Textures:
def __init__(self, seed):
! rnd = java.util.Random(seed)
hyper = rnd.nextGaussian()*5
***************
*** 76,82 ****
def getPaperTexture(self, type, gen):
index = 0
! t = self.rnd.nextDouble()
for p in self.probs[type]:
t -= p
--- 76,82 ----
def getPaperTexture(self, type, gen):
index = 0
! t = gen.nextDouble()
for p in self.probs[type]:
t -= p
- [Gzz-commits] gzz/gfx/libpaper textures.py,
Janne V. Kujala <=