Color oddity

Mac OSX specific forum
wombats
Enthusiast
Enthusiast
Posts: 663
Joined: Thu Dec 29, 2011 5:03 pm

Color oddity

Post by wombats »

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: Select all

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
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Color oddity

Post by IdeasVacuum »

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Color oddity

Post by IdeasVacuum »

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.
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Color oddity

Post by mk-soft »

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: Select all

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 / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
wombats
Enthusiast
Enthusiast
Posts: 663
Joined: Thu Dec 29, 2011 5:03 pm

Re: Color oddity

Post by wombats »

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: Select all

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.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Color oddity

Post by IdeasVacuum »

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.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Color oddity

Post by IdeasVacuum »

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.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Color oddity

Post by IdeasVacuum »

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
deseven
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: Color oddity

Post by deseven »

You can select "Generic RGB Profile" if you want to disable color correction. It will be pure blue then:
Image
Post Reply