Making Pencil more useful.

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

 



Hi all.

Most brushes are quite useless with the pencil, since it treats even an
opacity of 1 as fully opaque. I just fiddled around a little bit in
paint core and tried the following:

simon@cantaloop:/unstable/src/gimp/app> cvs -z3 diff -u ./paint_core.c 
Index: paint_core.c
===================================================================
RCS file: /cvs/gnome/gimp/app/paint_core.c,v
retrieving revision 1.86
diff -u -r1.86 paint_core.c
--- paint_core.c        2000/03/05 00:06:09     1.86
+++ paint_core.c        2000/03/26 21:11:11
@@ -1366,7 +1366,7 @@
       data++;
       for (j = 0; j < brush_mask->width; j++)
        {
-         *data++ = (*src++) ? OPAQUE_OPACITY : TRANSPARENT_OPACITY;
+         *data++ = (*src++) >> 6 ? OPAQUE_OPACITY : TRANSPARENT_OPACITY;
        }
       data++;
     }
------------------
this sets the threshold to 64. Suddenly the brushes are recognizeable... :-)

What do you think? Does this break something? The best way would be to make
it configurable, but then this is definitely a new feature ;-)

Bye,
        Simon

-- 
      Simon.Budig@xxxxxxxxxxx       http://www.home.unix-ag.org/simon/


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux