gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz/gfx demo/irregu4.py libutil/Irregu.hxx


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx demo/irregu4.py libutil/Irregu.hxx
Date: Fri, 15 Nov 2002 04:14:53 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        02/11/15 04:14:53

Modified files:
        gfx/demo       : irregu4.py 
        gfx/libutil    : Irregu.hxx 

Log message:
        doc

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/irregu4.py.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libutil/Irregu.hxx.diff?tr1=1.12&tr2=1.13&r1=text&r2=text

Patches:
Index: gzz/gfx/demo/irregu4.py
diff -u gzz/gfx/demo/irregu4.py:1.15 gzz/gfx/demo/irregu4.py:1.16
--- gzz/gfx/demo/irregu4.py:1.15        Fri Nov 15 03:11:44 2002
+++ gzz/gfx/demo/irregu4.py     Fri Nov 15 04:14:53 2002
@@ -17,7 +17,7 @@
               "scale,0.2,freq,4,df,4,bias,0.5"),
            
            ("noise",
-             "type,fBm,freq,4,bias,5,scale,.25"),
+             "type,fBm,freq,4,bias,.5,scale,.25"),
 
              ]
 
@@ -441,7 +441,7 @@
         elif k == "y": self.ys += .1
         elif k == "Y": self.ys -= .1
         elif k == "+": self.scale *= 1.2
-        elif k == "-": self.scale *= 1.2
+        elif k == "-": self.scale /= 1.2
         elif "1" <= k <= "9":
             self.flags ^= 1 << int(k) - 1
             self.initcode()
Index: gzz/gfx/libutil/Irregu.hxx
diff -u gzz/gfx/libutil/Irregu.hxx:1.12 gzz/gfx/libutil/Irregu.hxx:1.13
--- gzz/gfx/libutil/Irregu.hxx:1.12     Thu Nov 14 08:30:23 2002
+++ gzz/gfx/libutil/Irregu.hxx  Fri Nov 15 04:14:53 2002
@@ -73,19 +73,22 @@
        return fabs(c.x * (b.y - a.y) + b.x * (a.y - c.y) + a.x * (c.y - b.y));
     }
 
-    /** Draws an irregular edge
+    /** Draws an irregular edge. 
+     * The edge specified in paper coordinates. 
+     *
      * @param coords     vertex->screen transformation
      * @param pt         vertices of the edge
      * @param norm       normals at each vertex 
      * @param texscale   vertex to texcoords scaling (divides texcoords)
-     * @param linewidth  width of border line in pixels 
+     * @param linewidth  width of border line in pixels at refsize zoom 
      *                   (actually in units of the coords mapping destination)
-     * @param refsize    the coords2 zoom factor where linewidth is in effect
+     * @param refsize    the coords zoom factor where linewidth is defined
      * @param scale_pow  linewidth scaling exponent: e.g., 
      *                   0 constant, 1 linear, 1/2 sqrt
      * @param border0    quad inner edge displacement in units of norm
      * @param border1    quad outer edge displacement in units of norm
-     * @param texslicing a border0 and border1 factor for texcoords
+     * @param texslicing border0 and border1 factor for texcoords
+     *                   0: 1D texture slice, 1: direct sprinkled
      * @param c0         constant vector; currently specifies 
      *                   inner and outer color 4+4 floats
      * @param c1         second constant vecotr; used for secondary




reply via email to

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