QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: hanness on June 18, 2021, 10:29:38 pm

Title: Weird issue with colors in my QB64 program.
Post by: hanness on June 18, 2021, 10:29:38 pm
My QB64 program displays a screen that looks like this:

     [ This attachment cannot be displayed inline in 'Print Page' view ]  

When I run the same program on another computer, the display looks like this:

  [ This attachment cannot be displayed inline in 'Print Page' view ]  

Note that in the 2nd screenshot all the colors are darker.

I know for a fact that the issue is not due to a difference in the displays between the 2 systems. If that were the case then the 2 screencaptures should look the same when viewed on the same monitor but as you can see from the above screenshots, this is not the case.

More information:

The program displays only to console output. I'm running the June 14th dev build but it's been happening on many previous builds of QB64 as well.

My initial setup of the screen is done like this:

$Console:Only
_Source _Console
Width 120, 30

I set the colors with simple "color commands like this:
color 14,4
color 15
etc.
Title: Re: Weird issue with colors in my QB64 program.
Post by: hanness on June 18, 2021, 10:31:49 pm
Had a problem with attached images initially. This has been corrected. Post #1 in this thread should now accurately represent what I see.

Title: Re: Weird issue with colors in my QB64 program.
Post by: SMcNeill on June 19, 2021, 06:43:35 am
Is it a color calibration issue?  Will adjusting tint/contrast/gamma/ect fix the issue?  AFAIK, there’s no reason why QB64 colors would display any different, if the code is the same, unless it’s some hardware/system setting.
Title: Re: Weird issue with colors in my QB64 program.
Post by: hanness on June 20, 2021, 03:30:22 pm
The point that I was trying to make was that there is no possible way it could be a color calibration issue (at least to my mind), because the screenshots look different even on the same screen as you see above in my original post.

If it was simply a calibration issue, then both of the screenshots should look equally wrong. However, in this case, you can clearly see that the 2 images have different color information contained within them.


Title: Re: Weird issue with colors in my QB64 program.
Post by: SMcNeill on June 20, 2021, 05:13:44 pm
The point that I was trying to make was that there is no possible way it could be a color calibration issue (at least to my mind), because the screenshots look different even on the same screen as you see above in my original post.

If it was simply a calibration issue, then both of the screenshots should look equally wrong. However, in this case, you can clearly see that the 2 images have different color information contained within them.

I'm still guessing it's a calibration issue.

Open a command window on both computers.  (cmd.exe from the search bar)
Click the icon on the top left of the console.
Go to "Properties"
There's a setting there where you configure your console default colors. 

Check the shade values; I imagine one of them is different than the other.

QB64 just tells the console "use color 1, use color 2, use color 3"...  Windows, and the user, has the option to configure those colors to whatever the heck they want.

  [ This attachment cannot be displayed inline in 'Print Page' view ]