Skip to main content
Have I missed a transformer to convert to/from for instance RGB 20,255,40 to fme_color?

 

Hi

 

 

You can use this expression:

 

 

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

 

David
Thx! I had a workaround - just seemed to remember there was a transformer to convert between different color schemas - however I guess not 🙂.
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.


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.

 


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