[Gimp-developer] gradients database?

2002-06-02 Thread Gordon Royle

Hi,

Thanks to the help from this list, I have now interpreted the gradient
format and my program can now freely use at least the simpler GIMP
gradients (linear interpolation). After all this work, I had hoped that
there would be some central listing containing lots of cool gradients that
I could just immediately use but all I can find are the ones that
come with the GIMP already and a few isolated ones on the web. Does
anyone know if there is any central location where individuals can
contribute their funky gradients? If not, should there be one? This
could be easily automated to allow people to submit their favourite
gradients and build up a really excellent resource...

Thanks

gordon



-- 
Dr. Gordon F Royle, http://www.cs.uwa.edu.au/~gordon, [EMAIL PROTECTED]
--
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



[Gimp-developer] Format of GIMP gradient files

2002-05-30 Thread Gordon Royle

Hi,

What is the format of the GIMP gradient files?

For example, the gradient default which goes from black-white with a 
grey midpoint has the following text format:

GIMP Gradient
1
0.00 0.50 1.00 0.00 0.00 0.00 1.00 1.00 1.00 
1.00 1.00 0 0

and the gradient French flag has the format:

GIMP Gradient
3
0.00 0.17 0.33 0.00 0.00 1.00 1.00 0.00 0.00 
1.00 1.00 0 0
0.33 0.50 0.67 1.00 1.00 1.00 1.00 1.00 1.00 
1.00 1.00 0 0
0.67 0.83 1.00 1.00 0.00 0.00 1.00 1.00 0.00 
0.00 1.00 0 0

So the first number is obviously the number of segments in the gradient,
and therefore each line must describe one segment.

The first three values are the left/middle/right end points of the
segments respectively.

this leaves me with 8 floating point numbers and 2 integers to 
describe the three colours - the first 3 numbers seem to be the
RGB values of the left end point. But what the heck are the 
remaining numbers? They don't seem to correspond to anything !

Any help appreciated...



-- 
Dr. Gordon F Royle, http://www.cs.uwa.edu.au/~gordon, [EMAIL PROTECTED]
--
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer