Coloured by , how to use it?

Forums ProRealTime English forum ProBuilder support Coloured by , how to use it?

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • #47035

    I want to use the “COLOURED BY” command together with RETURN. What kind of variable does this command expect? I tried various numbers or variables but the color of the indicator doesn’t change. COLOURED(255,0,0) works and makes the indicator red but I want the color be depending on a variable.

    Anybody?

    #47051

    It’s R, G, B, Fade parameters, in that order. Fade may be omitted, with values 255 being max visibility and 0 invisibile.

    #47052
    #47056

    This does not work Roberto. If I use just COLOURED (without BY) it expects RGB values but if one adds BY it should expect a variable (it doesn’t accept RGB) and according to this variable change color but no matter what variable value i have there it is always black. 🙁

    #47078

    Does this work?

     

    Variables: a, b, c

    If (variable a) then

    Return XX coloured  (255,0,0) as “Name”

    elsif (Variable b) then

    Return XX coloured  (0,255,0) as “Name”

    elsif (Variable c) then

    Return XX coloured  (0,o,) 255 “Name”

    Endif

    #47079

    The “coloured by” uses the colours for up and down, as in the green for up and red for down. If you only need two colours that works well.

    #47081

    The first mail didn’t help, the second I don’t understand. I think. I would only need 2 colors but how do I choose them?

    #47084

    https://www.prorealcode.com/documentation/coloured/

    The Prorealcode link to how to use COLOURED BY.

    It uses the colours you select when you colour a line. ie the 1 is up and the -1 is down, as in a bar chart where the up is green and the red down.

    3 users thanked author for this post.
Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login