cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

How can i color a shape using 3 variables containg RGV values each from [0,255] ?

LaurentGermain
12-Amethyst

How can i color a shape using 3 variables containg RGV values each from [0,255] ?

I would like to color a shape based on 3 variables containing  RGB integer values.

ie

R=255

G=0

B=0

Should lead to a shape colored in Red

3 REPLIES 3

I would suggest you look into custom extensions, and by adding a graphic library to your extension you could write a service to do so (for example, opengl).

You can use style definition to define this for existing widgets. Define new style definition and then assign different RGB values while picking the color. I hope that helps!

Hi,

Your answer would work if i had only a few values, but It is clearly not realistic to create 256*256*256 Styles  definitions ;-)

Announcements


Top Tags