Just FYI, I've added the below to the gradientgoodness wiki page.
-Josh
bulia byak wrote:
On 1/11/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
If you find yourself with some offtime, I'd like you to check out my work on the gradient tool for 0.46.
I've played with it some, not too much, but here are some observations:
Node moving by arrow keys currently does not work
Let's try to make less of GrDrag public. The
sp_gradient_context_delete_stops is especially intrusive. Can you try to move the core of that function into a GrDrag method and make only that method public? This would let us make a lot of other stuff in GrDrag private.
- The node deletion logic needs to be smarter. In particular:
- when deleting an intermediate stop, do what you're doing now, no
need to change
- when deleting an endstop and there's at least one intermediate
stop, shorten the gradient by making the closest intermediate stop the new endstop (you're doing it now but only for color/opacity; I think we should also change the position of the endstop by moving it to the position of the closest intermediate, in effect shortening the gradient line, so that the rest of the gradient does not change at all)
- when deleting an endstop and there are no intermediate stops,
remove the gradient and paint the object with the color/opacity of the other stop, not with black as now.