Enhanced the range of the hardness parameter to make more soft brushes

2004-08-04  Simon Budig  <simon@gimp.org>

	* app/core/gimpbrushgenerated.c: Enhanced the range of the hardness
	parameter to make more soft brushes possible. Please note that this
	makes existing generated brushes look more soft. But since people
	apparently rarely use more than one or two generated brushes and
	these get changed frequently I guess it should be OK.
This commit is contained in:
Simon Budig
2004-08-04 17:41:33 +00:00
committed by Simon Budig
parent fd1a0e142c
commit 428c4a8d60
4 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2004-08-04 Simon Budig <simon@gimp.org>
* app/core/gimpbrushgenerated.c: Enhanced the range of the hardness
parameter to make more soft brushes possible. Please note that this
makes existing generated brushes look more soft. But since people
apparently rarely use more than one or two generated brushes and
these get changed frequently I guess it should be OK.
2004-08-04 Michael Natterer <mitch@gimp.org>
Allow URI drops from apps linked against GLib < 2.4.4 to GIMP

View File

@ -437,10 +437,10 @@ gimp_brush_generated_dirty (GimpData *data)
ceil (brush->radius + 1.0) *
ceil (brush->radius + 1.0)));
if ((1.0 - brush->hardness) < 0.000001)
if ((1.0 - brush->hardness) < 0.0000004)
exponent = 1000000.0;
else
exponent = 1.0 / (1.0 - brush->hardness);
exponent = 0.4 / (1.0 - brush->hardness);
lookup = g_malloc (length);
sum = 0.0;

View File

@ -437,10 +437,10 @@ gimp_brush_generated_dirty (GimpData *data)
ceil (brush->radius + 1.0) *
ceil (brush->radius + 1.0)));
if ((1.0 - brush->hardness) < 0.000001)
if ((1.0 - brush->hardness) < 0.0000004)
exponent = 1000000.0;
else
exponent = 1.0 / (1.0 - brush->hardness);
exponent = 0.4 / (1.0 - brush->hardness);
lookup = g_malloc (length);
sum = 0.0;

View File

@ -437,10 +437,10 @@ gimp_brush_generated_dirty (GimpData *data)
ceil (brush->radius + 1.0) *
ceil (brush->radius + 1.0)));
if ((1.0 - brush->hardness) < 0.000001)
if ((1.0 - brush->hardness) < 0.0000004)
exponent = 1000000.0;
else
exponent = 1.0 / (1.0 - brush->hardness);
exponent = 0.4 / (1.0 - brush->hardness);
lookup = g_malloc (length);
sum = 0.0;