It is currently Fri Oct 30, 2020 2:09 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Color oddity
PostPosted: Fri Mar 27, 2020 2:01 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 587
Hi,

When I run this, the blue isn't 0, 0, 255. It's 28, 64, 242. Does anyone know what's going on?
Code:
If OpenWindow(0, 0, 0, 460, 400, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CanvasGadget(0, 0, 0, 460, 400)
  StartDrawing(CanvasOutput(0))
  Box(0, 0, 460, 400, RGB(0, 0, 255))
  StopDrawing()
EndIf
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Fri Mar 27, 2020 4:10 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6259
Location: Wales, UK
Hi wombats

https://www.mathewinkson.com/2013/03/force-rgb-mode-in-mac-os-x-to-fix-the-picture-quality-of-an-external-monitor

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Fri Mar 27, 2020 4:15 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6259
Location: Wales, UK
Is your Monitor made by Apple? That's a potential compatibility issue for RGB apparently.

What happens if you use a Hex value instead?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Fri Mar 27, 2020 3:27 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2687
Location: Germany
The color is full blue (255),
but even for me, Mac mini, all apps are displayed on the external monitor with color balance and shafts. Especially in "dark mode".
If you make a screenshot, the colors are correct again.

Code:
If OpenWindow(0, 0, 0, 460, 400, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CanvasGadget(0, 0, 0, 460, 400)
  StartDrawing(CanvasOutput(0))
  Box(0, 0, 460, 400, RGB(0, 0, 255))
  Debug Hex(Point(10, 10))
  StopDrawing()
EndIf
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Fri Mar 27, 2020 3:35 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 587
IdeasVacuum wrote:
Is your Monitor made by Apple? That's a potential compatibility issue for RGB apparently.

What happens if you use a Hex value instead?
I'm using a MacBook Air. I get the same result if I use a Hex value.

mk-soft wrote:
The color is full blue (255),
but even for me, Mac mini, all apps are displayed on the external monitor with color balance and shafts. Especially in "dark mode".
If you make a screenshot, the colors are correct again.

Code:
If OpenWindow(0, 0, 0, 460, 400, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CanvasGadget(0, 0, 0, 460, 400)
  StartDrawing(CanvasOutput(0))
  Box(0, 0, 460, 400, RGB(0, 0, 255))
  Debug Hex(Point(10, 10))
  StopDrawing()
EndIf
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
I made a video of what happens for me: https://imgur.com/jIRkCOG. PureBasic says it's blue, but the system color requester says it's a different shade of blue.


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Fri Mar 27, 2020 11:43 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6259
Location: Wales, UK
If I verify the colour in your video on my Windows 7 Screen, the result is RGB(034,052,235)

It's blue, but not Primary Blue, and not the same as verified on your Mac either. A conundrum.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Fri Mar 27, 2020 11:48 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6259
Location: Wales, UK
Hi again

.... I think it could be the calibration of your screen. Turns out my my daughter has a similar issue on an MSI Windows 10 Laptop!

Try testing a range of colours - if it is the calibration, they should mostly all be a bit off.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Sat Mar 28, 2020 5:09 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6259
Location: Wales, UK
Apple advice: https://support.apple.com/en-gb/guide/m ... lp1109/mac

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Color oddity
PostPosted: Sat Apr 04, 2020 11:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jan 12, 2011 3:48 pm
Posts: 217
Location: Serbia
You can select "Generic RGB Profile" if you want to disable color correction. It will be pure blue then:
Image

_________________
PB examples collection
pb-osx-globalhotkeys
pb-osx-notifications


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye