How to change the color of the stroke using the swatches?

Post questions on how to use or achieve an effect in Inkscape.
tlaloc
Posts: 8
Joined: Thu Jun 21, 2007 6:22 pm

How to change the color of the stroke using the swatches?

Postby tlaloc » Tue Jul 10, 2007 1:19 pm

Hello,
this is a basic thing I havent figured out how to do yet, Is there an easy way for me to change the stroke color (outline) of an object by simply clicking on the swatches at the bottom. I have tried opening up the fill/stroke dialog and choosing the stroke tab and then clicking on the swatches at the bottom but it always changes the fill color of the object and not the outline color.


Please tell me how to do this


tlaloc
Posts: 8
Joined: Thu Jun 21, 2007 6:22 pm

Re: How to change the color of the stroke using the swatches?

Postby tlaloc » Tue Jul 10, 2007 2:24 pm

WOW, this is going to make my life much easier,

a simple solution to a simple problem,


thanks :P

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: How to change the color of the stroke using the swatches?

Postby heathenx » Thu Jul 12, 2007 12:10 pm

i will often just highlight my shape and then pick a color from the swatch and drag-n-drop the color on the fill or stroke color box on the lower left side. to get an idea what i mean, watch my episode 002 closely as i change colors.

http://screencasters.heathenx.org/index_03.html#ep002

tlaloc
Posts: 8
Joined: Thu Jun 21, 2007 6:22 pm

Re: How to change the color of the stroke using the swatches?

Postby tlaloc » Thu Jul 12, 2007 1:07 pm

thanks,

that makes things even easier just drag and drop,

now here is another question that I have.

I have noticed whenever I draw a path with the pen tool and it is done and I move on to drawing another one the settings for the stroke and fill revert to 1.00 px and the color to black how can I keep this from happening? so that I dont have have to keep setting things over and over again.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: How to change the color of the stroke using the swatches?

Postby microUgly » Thu Jul 12, 2007 4:36 pm

In you Inkscape preferences, go to Tools > Pencil then tick "Last used style" beneath "Create new object with". I'm not sure, but I think you can right click on the fill/stoke settings on the right of the tools control bar to quickly change these preferences.

auspicious
Posts: 3
Joined: Fri Nov 16, 2012 8:21 pm

Re: How to change the color of the stroke using the swatches

Postby auspicious » Fri Nov 16, 2012 8:43 pm

Ok, so posts like this have helped me change both the fill and the stroke of things that I drew with the lines-and-bezier tool :tool_pen:

However, I can't figure out why inkscape keeps the lines as black when I export to png. I don't want the black lines, and thus changed the stroke colors. What else could/should I change?

I am a beginner with inkscape, and have spent a few hours trying to figure this out. Please help. Thanks!

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to change the color of the stroke using the swatches

Postby brynn » Fri Nov 16, 2012 10:43 pm

Welcome!

So you changed the stroke color to something else, but after you exported, you see it's black again? Or did you change it to transparent? When you export to PNG, did you use Save As Cairo png? The proper way to do it is File menu > Export Bitmap.

If that's not the problem, I'm not sure what else to suggest. If that doesn't fix it, would you please provide the SVG file?

auspicious
Posts: 3
Joined: Fri Nov 16, 2012 8:21 pm

Re: How to change the color of the stroke using the swatches

Postby auspicious » Sat Nov 17, 2012 3:09 am

Thanks for the quick reply! Yes, I at first tried Cairo PNG, but then read about how it shouldn't be used, so I did an "export bitmap", and still had the problem, which was when I posted.

After reading your reply, I went back and took a look, and I think I found the problem. It's not with the exporting, but with setting the stroke colors. What happened was, I drew some closed shapes using the line-and-bezier pen, then used the fill :tool_paintbucket: tool to set the fill colors. My mistake was thinking that the borders of the colored regions would be the lines and beziers I had drawn. Actually, the colored regions had their own strokes. Thus, even after setting the fill and stroke colors (or unsetting the stroke colors in some cases) of these colored regions/objects, the original thin lines were still there, and still black. I thought I had selected the original thin lines, but now I find that I need to zoom in quite a bit to select them, then I can delete them, change their color, etc.

Thanks for your help :D. And in case anyone is puzzled but I said, attached is the svg file that shows the shapes and the original black lines. I hope this can help another beginner someday ..
Attachments
IACbackground.svg
(7.14 KiB) Downloaded 341 times

auspicious
Posts: 3
Joined: Fri Nov 16, 2012 8:21 pm

Re: How to change the color of the stroke using the swatches

Postby auspicious » Sat Nov 17, 2012 3:10 am

Thanks for the quick reply! Yes, I at first tried Cairo PNG, but then read about how it shouldn't be used, so I did an "export bitmap", and still had the problem, which was when I posted.

After reading your reply, I went back and took a look, and I think I found the problem. It's not with the exporting, but with setting the stroke colors. What happened was, I drew some closed shapes using the line-and-bezier pen, then used the fill :tool_paintbucket: tool to set the fill colors. My mistake was thinking that the borders of the colored regions would be the lines and beziers I had drawn. Actually, the colored regions had their own strokes. Thus, even after setting the fill and stroke colors (or unsetting the stroke colors in some cases) of these colored regions/objects, the original thin lines were still there, and still black. I thought I had selected the original thin lines, but now I find that I need to zoom in quite a bit to select them, then I can delete them, change their color, etc.

Thanks for your help :D. And in case anyone is puzzled but I said, attached is the svg file that shows the shapes and the original black lines. I hope this can help another beginner someday ..

IACbackground.svg
the file with the black lines
(7.14 KiB) Downloaded 316 times
Last edited by auspicious on Sat Nov 17, 2012 2:51 pm, edited 1 time in total.

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: How to change the color of the stroke using the swatches

Postby flamingolady » Sat Nov 17, 2012 4:51 am

aha, once again, an answer to how to use the swatches for the stroke, I never knew I could use the shift key with it! Never even thought to ask either. Learn something new everyday! love this forum.

I've also had the problem that a (pink) stroke turns to black when I export as a png, and can't figure it out either. I think it's a bug that needs to be fixed.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: How to change the color of the stroke using the swatches

Postby druban » Sat Nov 17, 2012 4:11 pm

flamingolady wrote:I've also had the problem that a (pink) stroke turns to black when I export as a png, and can't figure it out either. I think it's a bug that needs to be fixed.


Hi FL. Can you post a sample SVG file that hs this problem or even simpler could you just tell us the 8 character RGBA hexadecimal code for the stroke that has this problem. You will see it in the bottom right corner of the stroke tab in the fill and stroke dialog with the object selected, or you can hover over the stroke swatch in the bottom left of your canvas, it will be in the form e.g. "BB248933"... (of course not necessarily these particular letters!)
Your mind is what you think it is.

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: How to change the color of the stroke using the swatches

Postby flamingolady » Sun Nov 18, 2012 6:46 am

Druban,
here it is: e05fcbff
I was quite surprised, esp since this is something I sold for someone's avatar, and expected to see a pink stroke, and it's showing as black! So, I tried posting it myself and sure enough, it shows as black for me too, so it wasn't a monitor issue...
I've seen it in another shade too, but can't remember which pic, so can't duplicate it. It's rare when it happens, so not enough that I would have reported it....

thx
dee

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to change the color of the stroke using the swatches

Postby brynn » Sun Nov 18, 2012 10:50 pm

auspicious, I''m glad you worked it out :D

dee, I'm not sure if I understand. Do you mean that when you export something with that color, the PNG shows it black? Or do you mean this only happens using that color of a swatch? I was able to export the color both as a stroke and a fill, with no problem. But I didn't try making it a swatch... Ok, no problem with swatch either.

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: How to change the color of the stroke using the swatches

Postby flamingolady » Mon Nov 19, 2012 5:49 am

I meant when I exported that particular color as a stroke that it turned black when it was placed on the internet. I haven't ever used the swatch for setting stroke colors, always used the fill n stroke (wheel).
Now, this was with an older version of Inkscape, and come to think of it, I haven't noticed any problems recently.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to change the color of the stroke using the swatches

Postby brynn » Mon Nov 19, 2012 6:05 am

I'll attach my exports, as a test:
testexportcolor.png
testexportcolor.png (14.54 KiB) Viewed 22321 times

testexportcolor2.png
testexportcolor2.png (13.43 KiB) Viewed 22321 times

testexportcolor3.png
this is the one using a swatch on the stroke
testexportcolor3.png (14.44 KiB) Viewed 22321 times

Unless I did something wrong making the swatch, it seems to be working fine :D


Return to “Help with using Inkscape”