birdal46 / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Gradient flood fill #407

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The ability to flood/fill a drawn area with a gradient 

Original issue reported on code.google.com by thetinwo...@gmail.com on 7 Dec 2010 at 8:19

GoogleCodeExporter commented 8 years ago
How would that work ? Should the gradient be a circular or a rectangular one, 
or should it map to the edges of the filled area ?

Original comment by pulkoma...@gmail.com on 15 Dec 2010 at 4:25

GoogleCodeExporter commented 8 years ago
For rectangular, we can copy the ergonomy of the gradient rectangle: The user 
draws an extra line, and the gradient is drawn tangent to this line.

For circular... I don't know. Maybe plotting an extra point is enough (and 
grafx2 computes the farthest point itself)

I had thought of generalizing the fill type.. (Solid,Linear,Polar). I made some 
menu tests, but I didn't find it very pretty and there wasn't any demand at the 
time, so I gave up. Maybe it's time to dig up the mockups :)

Workaround: You can already apply a gradient to a specific area, by using these 
steps:
1) floodfill (or draw) with a color that is not used by your image.
2) activate Stencil mode : protect all colors except this one.
3) draw a big Grad Rectangle (or Grad Circle/Ellipse) over that color.

Original comment by yrizoud on 15 Dec 2010 at 5:33

GoogleCodeExporter commented 8 years ago
Thats a work around indeed :)
I could use at the moment the simple feature that I can flood fill an area that 
contains a single colour with a gradient that I create in the gradient menu.I 
just spent half an hour trying to find a way for that, I dont even need a 
contour/shape gradient, all I need would be the possibility to do a nice little 
vertical gradient so I can fill the blue sky behind my trees with a gradient of 
sky blue to dark blue :)

Original comment by eh...@gmx.de on 23 Feb 2011 at 8:48

GoogleCodeExporter commented 8 years ago
Why not using layers then ?

Apart from that, this kind of gradient should be possible with the current fill 
code.

Original comment by pulkoma...@gmail.com on 23 Feb 2011 at 8:50

GoogleCodeExporter commented 8 years ago
Yes this sounds like typical layer usage: Draw your gradient in bottom layer 
(number 1), and your main drawing in top layer (number 2). If the transparent 
color is number 0, any painting tool that turns pixels into color 0 will 
uncover the gradient.

Original comment by yrizoud on 23 Feb 2011 at 10:02

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 10 Apr 2011 at 8:43

GoogleCodeExporter commented 8 years ago
Arbitering issues that make it to v2.4

Original comment by yrizoud on 8 Mar 2012 at 7:18