BackgroundColor limits white drawing color

Forums ProRealTime English forum ProBuilder support BackgroundColor limits white drawing color

  • This topic has 4 replies, 2 voices, and was last updated 7 years ago by avatarAVT.
Viewing 5 posts - 1 through 5 (of 5 total)
  • #41028
    AVT

    Graphical instructions together with BackgroundColor have a funny limit: No matter what BG color you set, lines and text on that background are limited to a very bright gray but can not be white. This is what I found: at least two of the color values must be not higher than 235 (then the third color can have 255). Bug?

    Code for Tests:

     

    #41048

    That’s not a bug, this is intentional, it is not possible to set a color brighter or darker than the actual background color. It was already the case with the color panel in the indicator setting, setting a dark gray color when you have a very dark background reverse the color to a brighter one. I know this is annoying when you want to plot something almost transparent… already discussed with IT finance team, I just add this query to my own wish list into the dedicated thread: https://www.prorealcode.com/topic/centralization-of-queries-and-suggestions-on-prorealtime/page/8/#post-41047

    2 users thanked author for this post.
    avatar Bel, avatar AVT
    #41075
    AVT

    I tried automatic inverting the colors when a user changes the background color. But here I am really lost, how a general formula should look like which works around these limits. Well for now it’s just one line and found a simple solution. (And for transparency we have the Alpha value now, great to use).

    Thanks Nicolas.

    #41081

    Stop me if I’m wrong but the transparency will not help in this case: even if you make a line fully transparent with Alpha value it will not render as invisible?

    #41150
    AVT

    Yes, you can completely fade out color. Example here:

    Background black, Text color white (well not really completely bright white, but as far as we can go) and then fading out with Alpha. Code:

     

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

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