[WIP] Shaped fill tool

Similar to radial gradient, but follows the shape of the object).
(Based on https://github.com/mattdesl/image-sdf
by Matt DesLauriers (https://www.mattdesl.com/), MIT License)
This commit is contained in:
Bill Kendrick 2023-02-24 02:18:42 -08:00
parent 559312682e
commit 3fc76953d6
135 changed files with 7508 additions and 5472 deletions

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
June 14, 2002 - February 20, 2023
June 14, 2002 - February 24, 2023
*/
#include "platform.h"
@ -5703,6 +5703,13 @@ static void mainloop(void)
old_y, draw_color,
sim_flood_touched);
}
else if (cur_fill == FILL_GRADIENT_SHAPED)
{
/* Shaped gradient */
draw_shaped_gradient(canvas, sim_flood_x1, sim_flood_y1,
sim_flood_x2, sim_flood_y2,
draw_color, sim_flood_touched);
}
else if (cur_fill == FILL_GRADIENT_LINEAR)
{
/* Start a linear gradient */