Set order for colours in gpl colour palette

Post questions on how to use or achieve an effect in Inkscape.
meetdilip
Posts: 45
Joined: Sun Dec 03, 2017 12:28 am

Set order for colours in gpl colour palette

Postby meetdilip » Thu Oct 03, 2019 12:16 am

I was able to create a .gpl file colour palette which is working fine with Inkscape. Sadly, the colours auto arranged themselves in some funny order. Probably from ffffff to 000000. All I had to do was create rectangles of desired hex colours and then save as .gpl using Inkscape. Now that I have placed the .gpl file in the palette folder and restarted Inkscape, all the colours are available when I choose the palette by name, sadly, in a messed up order. It will be great if someone can suggest a fix. Thanks.

Please see the image below for the order in which I have stacked the colours and how it ended up appearing on the palette

colour palette inkscape.png
colour palette inkscape.png (86.65 KiB) Viewed 209 times

Moini
Posts: 3333
Joined: Mon Oct 05, 2015 10:44 am

Re: Set order for colours in gpl colour palette

Postby Moini » Thu Oct 03, 2019 3:22 am

Open the file, and adjust the order. It's a text file, so it's going to be easy to edit.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

meetdilip
Posts: 45
Joined: Sun Dec 03, 2017 12:28 am

Re: Set order for colours in gpl colour palette

Postby meetdilip » Thu Oct 03, 2019 4:56 am

Thank you. Just wondering if we can do something through the GUI though. Earlier, I tried with space after each " set ". That too ended up with the same as above.

Moini
Posts: 3333
Joined: Mon Oct 05, 2015 10:44 am

Re: Set order for colours in gpl colour palette

Postby Moini » Thu Oct 03, 2019 5:03 am

Maybe the z-order matters? I have no idea. If it looks ordered by alphabet, then it probably is.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

meetdilip
Posts: 45
Joined: Sun Dec 03, 2017 12:28 am

Re: Set order for colours in gpl colour palette

Postby meetdilip » Thu Oct 03, 2019 5:08 am

As you can see, Black takes the left extreme and White takes the right. All other colours are arranged based on hex code between these shades. I am attaching the gpl file, just in case that changes anything. There is a specific order of hex codes as how it arranged between Black and White.
Attachments
Libre Office 2x.gpl.zip
(579 Bytes) Downloaded 13 times

meetdilip
Posts: 45
Joined: Sun Dec 03, 2017 12:28 am

Re: Set order for colours in gpl colour palette

Postby meetdilip » Mon Oct 07, 2019 1:22 am



Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 7 guests