gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/libpaper colors.py


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx/libpaper colors.py
Date: Wed, 25 Sep 2002 08:33:54 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        02/09/25 08:33:54

Modified files:
        gfx/libpaper   : colors.py 

Log message:
        Use smaller sector from AB-space for colors

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libpaper/colors.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: gzz/gfx/libpaper/colors.py
diff -c gzz/gfx/libpaper/colors.py:1.7 gzz/gfx/libpaper/colors.py:1.8
*** gzz/gfx/libpaper/colors.py:1.7      Wed Sep 25 07:28:11 2002
--- gzz/gfx/libpaper/colors.py  Wed Sep 25 08:33:54 2002
***************
*** 17,27 ****
          # Just take alternating dark and light colors
          while 1:
              t = (100 - minlum)/2
!             col = [ getRandomColor(minlum + t - t * (i & 1),
!                                    100 - t * (i & 1), rnd)
                      for i in range(0,4) ]
!             #if 180 - self._AB_angle(col) > 135 * rnd.nextFloat(): break
!             if self._AB_angle(col) < 180: break
          print self._AB_angle(col)
  
          while 0:
--- 17,27 ----
          # Just take alternating dark and light colors
          while 1:
              t = (100 - minlum)/2
!             col = [ getRandomColor2(minlum + t - t * (i & 1),
!                                     100 - t * (i & 1), rnd)
                      for i in range(0,4) ]
!             if 120 - self._AB_angle(col) > 90 * rnd.nextFloat(): break
!             #if self._AB_angle(col) < 180: break
          print self._AB_angle(col)
  
          while 0:
***************
*** 86,88 ****
--- 86,90 ----
  
          return reduce(lambda x,y: x+y, dots) / len(dots)
      
+     def _AB_area(seld, cols):
+         pass




reply via email to

[Prev in Thread] Current Thread [Next in Thread]