Expand my Community achievements bar.

How to get the RGB values at run time and change the fillcolor of an object based on it?

Avatar

Level 1

How to get the RGB values from 3 text fields at run time and change the fillcolor of another object based on the values intered in those 3 text fields?

Object_Colour.fillColor = "R.rawValue,G.rawValue,B.rawValue";

1 Reply

Avatar

Level 10

Object.border.fill.color.value = "255,255,255";

if you want to use rawValue of textfields to insert in there you will have to do

Object.border.fill.color.value = R.rawValue + "," + G.rawValue + "," + B.rawValue