Two Color Fill?

Post questions on how to use or achieve an effect in Inkscape.
LoonatikNiK
Posts: 2
Joined: Thu Dec 11, 2014 10:57 pm

Two Color Fill?

Postby LoonatikNiK » Fri Dec 12, 2014 8:20 am

Alright let's say I have a circle or any closed shape for that matter. Maybe a jester's hat. One line, one path, one object. I want the stroke to be black and the fill to be exactly half blue and half pink. I do not want to add another line. I want the blue to touch with the pink in a perfect vertical line all the way down the precise center of the object. How is this done?

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Two Color Fill?

Postby hulf2012 » Fri Dec 12, 2014 8:24 am

the easy way is With a linear gradient:

http://tavmjong.free.fr/INKSCAPE/MANUAL ... -Gradients
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

LoonatikNiK
Posts: 2
Joined: Thu Dec 11, 2014 10:57 pm

Re: Two Color Fill?

Postby LoonatikNiK » Fri Dec 12, 2014 9:55 am

Yes that was my first thought but I cant figure out how to reduce the blend of the colors. I want solid pink and then directly to solid blue.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Two Color Fill?

Postby Lazur » Fri Dec 12, 2014 10:16 am

Then you need to add more steps.
One step for the two ends, two for the middle -exact same position-, and set the two colour values for the four steps.

On a side note, gradients render aliased -the break between the colours may not be crystal sharp in small resolution-.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Two Color Fill?

Postby tylerdurden » Fri Dec 12, 2014 12:46 pm

Another option is open paths married at the middle, particularly if the object is symmetrical.

SVG Image
Two clones with differing fill. Original has unset color.

(Download to examine the file in Inkscape and modify the original object.)
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/


Return to “Help with using Inkscape”