<div class="gmail_quote">On Thu, Nov 4, 2010 at 12:19 AM, Olivier BERTEN <span dir="ltr"><<a href="mailto:olivier.berten@gmail.com">olivier.berten@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi!<br>
<br>
Still going on with SwatchBooker, I'm now analysing gradients file<br>
formats <<a href="http://www.selapa.net/swatches/gradients/fileformats.php" target="_blank">http://www.selapa.net/swatches/gradients/fileformats.php</a>> and<br>
as I was thinking at my own format for these, there were some things<br>
triggering me... And I'd really like to have some other's opinions about<br>
them...<br>
<br>
* I don't see the point in Foreground/Background colors<br>
<<a href="http://www.mail-archive.com/create@lists.freedesktop.org/msg01272.html" target="_blank">http://www.mail-archive.com/create@lists.freedesktop.org/msg01272.html</a>><br>
;-) I see even less the point in having gradients swatches defined with<br>
Foreground/Background colors... This is a "feature" you can find in<br>
Photoshop and Gimp gradients. For sure I don't see how it would be<br>
useful in an exchange format...<br></blockquote><div><br>The feature itself makes sense (I recently added it to Krita on request). That is mostly used for foreground-transparent and foreground-background gradients that are handled by the applications internally but not exported.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
* In my idea, a gradient is defined by stops and the way to go from one<br>
to the other. All other things like shape, angle, center, etc. are how<br>
you use the gradient, not the gradient itself. Which means I would leave<br>
out these features when importing from OpenOffice.org or Flash.<br></blockquote><div><br>Agreed.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
* I think the "segment" concept of Gimp isn't really interesting since<br>
the position of a segment start has to be the same as the end of the<br>
previous one, and in 99% of the cases, the color is the same too. For<br>
the 1% left, you can create another stop at the same position.<br></blockquote><div><br>The main difference of the segmented gradients is that can have different interpolations per segment. There are interpolations like sinus and color interpolations like HSV. Of course in probably 99% of the cases just linear is used. For the application it doesn't really matter if the gradient comes as stop or segment gradient. In Krita we can use can use both types and for Karbon we convert Gimp gradients to stop gradients (with potential loss of some features).<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
* I'm not sure yet how to deal with transparency. My first option would<br>
be to say: we're talking about color gradient and transparency isn't a<br>
color attribute, it's an object or painter attribute, so we leave it out<br>
completely. There's the Adobe's option to have a transparency gradient<br>
next to the color gradient but then again, why not really differentiate<br>
things and really separate them... But at least it would cover that<br>
feature because I really think including transparency into the color<br>
definition is wrong.<br></blockquote><div><br>Transparency is at least needed for the stops, so it's linked to the stop color anyway. The application can still decide if it wants to use the transparency or not.<br> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
* Is there any free software dealing with noise gradients?<br>
<br>
Even though I thought a lot about these things, I really appreciate<br>
contradiction so start shooting ;-)<br>
<br>
Olivier<br>
_______________________________________________<br>
CREATE mailing list<br>
<a href="mailto:CREATE@lists.freedesktop.org">CREATE@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/create" target="_blank">http://lists.freedesktop.org/mailman/listinfo/create</a><br>
</blockquote></div><br>