Synfig Project Forum

Forums for Synfig Project
It is currently Wed May 22, 2013 10:01 pm

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: HTML hex colour values
PostPosted: Sat Jul 02, 2011 5:08 am 
Offline
User avatar

Joined: Fri Jul 01, 2011 6:14 am
Posts: 276
Location: Hungary
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?

Example:

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.

_________________
http://kecskebak.blogspot.com


Top
 Profile  
 
PostPosted: Sat Jul 02, 2011 12:35 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
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...
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Sat Jul 02, 2011 2:04 pm 
Offline
User avatar

Joined: Fri Jul 01, 2011 6:14 am
Posts: 276
Location: Hungary
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.

_________________
http://kecskebak.blogspot.com


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 12:48 pm 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 669
Location: Foshan City, China
DaveJ wrote:
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?


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.

Attachment:
synfig-colorpalette-editor-Screenshot-1.png
synfig-colorpalette-editor-Screenshot-1.png [ 26.93 KiB | Viewed 1337 times ]


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. :oops: You can compare the bellow color in 2e3436 tothis one

.spal file (Synfig Studio Color Palette)
https://github.com/jcome/synfig_ui/blob ... lette.spal

and HTML Code
https://github.com/jcome/synfig_ui/blob ... MLCode.txt

_________________
time flies...


Last edited by jcome on Mon Jul 18, 2011 1:03 pm, edited 2 times in total.

Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 12:53 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
Jcome,
Thanks for share. Please keep in mind to contribute with the palettes once we can launch the repository system.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 12:57 pm 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 669
Location: Foshan City, China
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 :)

_________________
time flies...


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 1:03 pm 
Offline
User avatar

Joined: Fri Jul 01, 2011 6:14 am
Posts: 276
Location: Hungary
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.

_________________
http://kecskebak.blogspot.com


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 3:23 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
jcome wrote:
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 :)

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.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 9:48 pm 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 669
Location: Foshan City, China
DaveJ wrote:
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.


You are right, the HTML Codes don't work properly. :oops:
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.

_________________
time flies...


Top
 Profile  
 
PostPosted: Tue Jul 19, 2011 11:43 am 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 669
Location: Foshan City, China
The tango color palette .spal file updated with correct color shade.

_________________
time flies...


Top
 Profile  
 
PostPosted: Wed Nov 23, 2011 1:59 pm 
Offline

Joined: Fri Nov 11, 2011 11:55 am
Posts: 4
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).


Top
 Profile  
 
PostPosted: Thu Nov 24, 2011 11:57 am 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
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.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Thu Nov 24, 2011 8:57 pm 
Offline

Joined: Fri Nov 11, 2011 11:55 am
Posts: 4
Ok. Thanks for explanation! It's good to know that there is *a* way to get there.

Cheers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group