Skip to main content
Question

Convert between different color values

  • November 3, 2015
  • 5 replies
  • 121 views

sigtill
Supporter
Forum|alt.badge.img+25
Have I missed a transformer to convert to/from for instance RGB 20,255,40 to fme_color?

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

david_r
Celebrity
  • November 3, 2015
Hi

 

 

You can use this expression:

 

 

@Evaluate(@Value(Red)/255.0),@Evaluate(@Value(Green)/255.0),@Evaluate(@Value(Blue)/255.0

 

David

sigtill
Supporter
Forum|alt.badge.img+25
  • Author
  • Supporter
  • November 3, 2015
Thx! I had a workaround - just seemed to remember there was a transformer to convert between different color schemas - however I guess not :).

david_r
Celebrity
  • November 3, 2015
Thx! I had a workaround - just seemed to remember there was a transformer to convert between different color schemas - however I guess not :).

I was also surprised that I was unable to find any. I'll let you post the idea in the suggestion box.


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • November 3, 2015
Maybe it was a custom transformer from the store or knowledgebase that you were thinking about? I see the HTMLColorCalculator - although it only does hex and not RGB. I'll file a suggestion to add that functionality.

 


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • November 3, 2015
Maybe it was a custom transformer from the store or knowledgebase that you were thinking about? I see the HTMLColorCalculator - although it only does hex and not RGB. I'll file a suggestion to add that functionality.

 

Added as PR#65379