How to choose a specific color's hex code

Post questions on how to use or achieve an effect in Inkscape.
kuurt
Posts: 19
Joined: Tue Jun 23, 2015 10:32 am

How to choose a specific color's hex code

Postby kuurt » Sun Jun 12, 2016 8:11 am

How do I make something the exact color that I want - It won't let me choose the hex code. You have all those colors at the bottom to choose from and there is a little box that shows the color's hex codes, but it doesn't let you insert a hex code. If I open the fill window I still can't find a way to choose the color's hex code.
Last edited by kuurt on Sun Jun 12, 2016 8:13 am, edited 1 time in total.

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: How to choose a specific color's hex code

Postby Xav » Sun Jun 12, 2016 4:39 pm

In the Fill & Stroke dialog the hex code is displayed at the bottom of the colour selector (just above the Blur and Opacity sliders), and is labelled as RGBA. Note that this is an 8 digit hex code, not a 6 digit one. The last two digits are for the Alpha value - if you want your colour to be completely opaque then they should be "ff".

For example, pure opaque red is "ff0000ff", whereas 50% grey is "808080ff".
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

kuurt
Posts: 19
Joined: Tue Jun 23, 2015 10:32 am

Re: How to choose a specific color's hex code

Postby kuurt » Fri Jun 17, 2016 7:50 am

Boy this program is so confusing. Ok, I understand what you're saying but now it's not changing the color of my picture the way it was before. The other day I could just pick a color at the bottom and the picture would change to that color. Today it's not doing that for some reason. It is changing the color in the fill and stroke dialog, but it's not changing my picture none. How do I get it to change the the picture like it was the other day. I put the color hex in that I wanted and the fill and stroke dialog is showing it correctly, but it's not changing the color of my picture.

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: How to choose a specific color's hex code

Postby Xav » Fri Jun 17, 2016 5:41 pm

Make sure you have one or more objects selected when you click on the colour swatch at the bottom. Also check the status bar at the bottom, to make sure you don't have a clone selected.

If that's not the cause, can you upload a small example file that exhibits the problem, and talk us through exactly what steps you are taking. It's probably just a simple misunderstanding, but it is possible for certain elements in the file (e.g. clones or filters) to affect your ability to change the colour of an object with the swatches or dialog.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

kuurt
Posts: 19
Joined: Tue Jun 23, 2015 10:32 am

Re: How to choose a specific color's hex code

Postby kuurt » Sun Jun 19, 2016 6:36 am

It doesn't say anything about clone or filters at the bottom, but I do have the image selected, or the page rather. I don't know how to select a object like the book on the page, it won't let me. But it shows the fill color changing when I click a different color. It's just not applying to my book image for some reason.
Attachments
InkscapeProblem.jpg
InkscapeProblem.jpg (245.67 KiB) Viewed 9404 times

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: How to choose a specific color's hex code

Postby Polygon » Sun Jun 19, 2016 7:38 am

You have opened a raster image with Inkscape. You can´t use "Fill+Contour" to change the existing color. The "Filter>Color->Colorize will do what you want - but you still don´t have a vector graphic in first place:
Colorize.png
Colorize.png (75.5 KiB) Viewed 9391 times


Cheers
P.

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: How to choose a specific color's hex code

Postby Maestral » Sun Jun 19, 2016 7:39 am

Perhaps it`s time to refresh your routines....

viewtopic.php?f=5&t=20354&p=76918#p76861 (<<<< follow this link)
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

kuurt
Posts: 19
Joined: Tue Jun 23, 2015 10:32 am

Re: How to choose a specific color's hex code

Postby kuurt » Sun Jun 19, 2016 8:17 am

Colorize wouldn't change the color, it only changed the white areas. If I turn it into a vector image it looks fuzzy. It actually looks better and clearer as a bitmap. But, there seems to be no way to change the color because every pixel isn't the same color. They are lighter around the edges to make the image looks smoother. This is has always been my biggest problem. I think these kind of programs should come with an option that allows you to swap out the color with another. If there is more than one color (Iighter around the edges) it should just make it lighter around the edges with the new color.

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: How to choose a specific color's hex code

Postby Maestral » Sun Jun 19, 2016 9:00 am

kuurt wrote:... If I turn it into a vector image it looks fuzzy. It actually looks better and clearer as a bitmap...


What do you mean - fuzzy?!

Image

Maestral wrote:Perhaps it`s time to refresh your routines....

viewtopic.php?f=5&t=20354&p=76918#p76861 (<<<< follow this link)
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: How to choose a specific color's hex code

Postby Polygon » Sun Jun 19, 2016 9:12 am

kuurt wrote:Colorize wouldn't change the color, it only changed the white areas.

No? Curiously enough it works with a screenshot of yours:
Colorize.gif
Colorize.gif (64.41 KiB) Viewed 9363 times


I have no idea what went wrong on your site other then you don´t have a clue of what you´re doing here.
Sure there´s an anti aliased area and the filter compensates exactly the necessary values. I´m sorry but you didn´t get the difference between raster image and vector graphic. See attachment please:
BookVectorized.svg
(38.49 KiB) Downloaded 192 times


Cheers
P.

PS: You can have a vector version from the original site by clicking the right download link BTW: http://www.freestockphotos.biz/stockphoto/14337

kuurt
Posts: 19
Joined: Tue Jun 23, 2015 10:32 am

Re: How to choose a specific color's hex code

Postby kuurt » Sun Jun 19, 2016 10:12 am

I thought if I did 10 scans I would get a clearer image than if I did 2 scans (the minimum) because of what i was seeing in the preview window. But, once I actually clicked on ok to the 2 scans it ended up being clearer than the one with 10 scans as you can see in my pic.

But when I go to color the books you can see what happens.

I actually had better luck ungrouping the one with 10 scans and coloring one of those scans. But, I also have trouble getting them to ungroup, sometimes I can't get the scans to come apart. And once in a while I'll get lucky and manage to separate the scans. I don't know what I'm doing wrong there.

Anyway, I would like to know how you're using colorize to color them because you can see below what it does when I use colorize.
Attachments
colorize.png
colorize.png (37.36 KiB) Viewed 9347 times
Books.png
Books.png (72.57 KiB) Viewed 9347 times

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: How to choose a specific color's hex code

Postby Polygon » Sun Jun 19, 2016 10:48 am

You just need to scan for 2 colors - then ungroup the result and select+delete the grey background layer - use color+fill to adjust color.

"Colorize": please check the first tab of the filter´s properties:
Options.png
Options.png (73.15 KiB) Viewed 9334 times


Cheers
P.

kuurt
Posts: 19
Joined: Tue Jun 23, 2015 10:32 am

Re: How to choose a specific color's hex code

Postby kuurt » Sun Jun 19, 2016 11:10 am

Ok that worked for colorize. But why can't I get my scans apart when I click on the image and go to ungroup. They still don't come apart.

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: How to choose a specific color's hex code

Postby Polygon » Sun Jun 19, 2016 11:17 am

Check what you´ve got selected by checking the status bar at the bottom of the window: it´s called group - not image:
group.png
group.png (33.53 KiB) Viewed 9321 times


Cheers
P.


Return to “Help with using Inkscape”