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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

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

LaurentGermain
6-Contributor

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).

rnayak-2
5-Regular Member
(To:LaurentGermain)

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 ;-)

Top Tags