I’ve got a question about colour in Synfig: Is the HTML code input box on the Synfig Colours dialog broken, or am I misunderstanding something?
I wanted to change the colour of a rectangle to the Hex RGB value 171a17 (RGB 9% 10% 9%).
If I enter the values 9%, 10%, 9% into the Red, Green and Blue spinboxes on the Synfig Colours dialog box, I get the colour I expect. However, I also see that the HTML code displayed on the Colours dialog becomes 010101 - not what I expect.
However, if I enter 171a17 into the Hex RGB value box, then I get a light grey rectangle - something I didn’t expect. And the values 33.5 34.5 33.5 appear in the Red, Green, Blue spin boxes.
Version: Synfig 0.63, Fedora 15.
Synfig uses by default a non linear color selection where the map from 0,0,0 to 1,1,1 is not linear. To get back a visually linear color selection please change it in the Setup Dialog. ToolBox->File->Setup…
Many thanks for your help - this is really interesting and very helpful. I notice a load of features that I’ll have to get into later in Synfig Studio, including non-square pixels which are really useful for television work.
Hi, I just converted tango color palette into .spal using HTML codes. What I have to do is just copy the html code and past into synfig color dialog html code field.
It seems color in Synfig Studio is much lighter than in Inkscape or in HTML pages, I guess it is because Synfig Studio lacks CMS. You can compare the bellow color in 2e3436 tothis one
.spal file (Synfig Studio Color Palette)
github.com/jcome/synfig_ui/blob … lette.spal
and HTML Code
github.com/jcome/synfig_ui/blob … MLCode.txt
Thanks for share. Please keep in mind to contribute with the palettes once we can launch the repository system.
Hi Genete, Can we include the tango color palette into our source? And maybe we can collect some traditional cartoon colors as our color palettes
If you enter the colour values of the Tango palette as RGB percentages rather than using the HTML codes then the colours will be identical to Inkscape.
I’m not sure if it should go to the source code since it is just a resource. I think that it will be better in the Synfig official repository of resources that I want to be launched as soon as possible. Think that source code is that, source. I think that even examples should be put in a different place.
Keep it at hand and you can put it in the right place on time.
You are right, the HTML Codes don’t work properly.
When I use the HTML codes, the colors I get is totally different than they are in Inkscape. I have to save the svg format of palette into pain svg and import it to Synfig Studio, and then I get the “right looking” colors.
The tango color palette .spal file updated with correct color shade.
So, provided that I have a color in Hex RRGGBB value, say #C90B47, which method/ conversion should I apply in order to successfully obtain the “correct” color in Synfig Studio?
I also have tried by directly pasting the Hex RGB in the field “HTML Code”, but it does not seem to work properly. That was with the setting 'Visually Linear Color Selection" both enabled and disabled.
In order to compare colors obtained by Synfig I’m checking both Gimp and Inkscape (just in case).
Thanks for your attention (and for the great SW of course).
To have exactly same rendered color on the screen you have to adjust the gamma value to 1.0. Default in Synfig is 2.2 and is is hardcoded, so if you change it to gamma=1.0 it would export to gamma=2.2. So usually I don’t believe on html code I look the 0-255 rgb values on Gimp and convert them to 0.0-1.0 values and input them on Synfig color dialog.
I’m so bugged with this behaviour but change it would mean a very big change so I haven’t had time to fix it yet.
Ok. Thanks for explanation! It’s good to know that there is a way to get there.