need some RGB bug tester

Terence Heaford t.heaford at btinternet.com
Mon Sep 15 14:37:29 EDT 2014


Hi,

I am not well up on colour but have dabbled with NSColor in Cocoa.

There are numerous methods for creating an NSColor:

Creating an NSColor Object from Component Values
+ colorWithCalibratedHue:saturation:brightness:alpha:
+ colorWithCalibratedRed:green:blue:alpha:
+ colorWithCalibratedWhite:alpha:
+ colorWithCatalogName:colorName:
+ colorWithDeviceCyan:magenta:yellow:black:alpha:
+ colorWithDeviceHue:saturation:brightness:alpha:
+ colorWithDeviceRed:green:blue:alpha:
+ colorWithDeviceWhite:alpha:
+ colorWithCIColor:
+ colorWithColorSpace:components:count:
+ colorWithSRGBRed:green:blue:alpha:
+ colorWithGenericGamma22White:alpha:
+ colorWithHue:saturation:brightness:alpha:
+ colorWithRed:green:blue:alpha:
+ colorWithWhite:alpha:

Could it be that LiveCode is using the incorrect method of determining/obtaining the colour.

If you wish to read up on NSColor follow this link:

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html

All the best

and good luck.

Terry



On 15 Sep 2014, at 18:35, Matthias Rebbe | M-R-D <matthias_livecode_150811 at m-r-d.de> wrote:

> I tested only on Mac and can see a difference when opening the image in Safari on Mac and in LC on Mac. The image in LC is definitely a little bit darker than the one in Safari on Mac.
> 
> And the loupe tool of the color select dialog on mac shows different values when selecting the color of the image in the browser and in LC.
> 
> Matthias
> 
> Am 15.09.2014 um 18:45 schrieb J. Landman Gay <jacque at hyperactivesw.com>:
> 
>> This is due to the different screen gamma settings on Mac.  It affects the appearance but doesn't change the actual bitmap data.  The screen gamma can be set by the. user, and the default setting on Mac is different from the default on Windows.
>> 
>> I had thought it was the gamma setting that was causing the problem but now I think Bernd is right and byteToChar is the answer.  
>> 
>> On September 15, 2014 6:29:17 AM CDT, Matthias Rebbe | M-R-D <matthias_livecode_150811 at m-r-d.de> wrote:
>> 
>>> If i use the loupe of the Color selection dialog on Mac and select the
>>> image in Browser i can see values similar to the ones you can see on
>>> Windows. Doing the same with the LC image i can see values similar to
>>> the ones LC is reporting back.
>>> So LC is seems to "change" the image in some way on Mac OS X
>> -- 
>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>> HyperActive Software           |     http://www.hyperactivesw.com
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list