Skip to main content
Question

Convert between different color values


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

 

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+24
  • 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
sigtill wrote:
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+46
  • 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+46
  • Safer
  • November 3, 2015
mark2atsafe wrote:
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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings