Question

Convert between different color values

  • 3 November 2015
  • 5 replies
  • 0 views

Badge +21
Have I missed a transformer to convert to/from for instance RGB 20,255,40 to fme_color?

 


5 replies

Userlevel 4
Hi

 

 

You can use this expression:

 

 

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

 

David
Badge +21
Thx! I had a workaround - just seemed to remember there was a transformer to convert between different color schemas - however I guess not :).
Userlevel 4
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.

Userlevel 4
Badge +25
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.

 

Userlevel 4
Badge +25
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

Reply