Revision: 12544 http://sourceforge.net/p/skim-app/code/12544 Author: hofman Date: 2021-11-11 15:44:15 +0000 (Thu, 11 Nov 2021) Log Message: ----------- update comment
Modified Paths: -------------- trunk/NSGraphics_SKExtensions.m Modified: trunk/NSGraphics_SKExtensions.m =================================================================== --- trunk/NSGraphics_SKExtensions.m 2021-11-10 23:10:47 UTC (rev 12543) +++ trunk/NSGraphics_SKExtensions.m 2021-11-11 15:44:15 UTC (rev 12544) @@ -198,8 +198,8 @@ } if (SKHasDarkAppearance(NSApp) && [[NSUserDefaults standardUserDefaults] boolForKey:SKInvertColorsInDarkModeKey]) { // This is like CIColorInvert + CIHueAdjust, modified to map white to dark gray rather than black - // Inverts a linear luminocity/brightness for weights 0.3086, 0.6094, 0.0820 - // see https://wiki.preterhuman.net/Matrix_Operations_for_Image_Processingand https://beesbuzz.biz/code/16-hsv-color-transforms + // Inverts a linear luminocity with weights from the CIE standards + // see https://wiki.preterhuman.net/Matrix_Operations_for_Image_Processingand https://beesbuzz.biz/code/16-hsv-color-transforms if ((filter = [CIFilter filterWithName:@"CIColorMatrix" keysAndValues:@"inputRVector", [CIVector vectorWithX:1.0-LR Y:-LG Z:-LB], @"inputGVector", [CIVector vectorWithX:-LR Y:1.0-LG Z:-LB], @"inputBVector", [CIVector vectorWithX:-LR Y:-LG Z:1.0-LB], @"inputBiasVector", [CIVector vectorWithX:1.0 Y:1.0 Z:1.0], nil])) [filters addObject:filter]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit