Coloured by , how to use it?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #47035 quote
    Despair
    Blocked
    Master

    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 quote
    robertogozzi
    Moderator
    Master

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

    #47052 quote
    robertogozzi
    Moderator
    Master
    #47056 quote
    Despair
    Blocked
    Master

    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 quote
    pimento
    Participant
    Average

    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 quote
    pimento
    Participant
    Average

    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 quote
    Despair
    Blocked
    Master

    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 quote
    pimento
    Participant
    Average

    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.

    Despair, robertogozzi and Nicolas thanked this post
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Coloured by , how to use it?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Despair @despair Blocked
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by pimento
8 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/23/2017
Status: Active
Attachments: No files
Logo Logo
Loading...