Revision: 13556
http://sourceforge.net/p/skim-app/code/13556
Author: hofman
Date: 2023-08-03 16:28:46 +0000 (Thu, 03 Aug 2023)
Log Message:
-----------
tweak laser pointer image
Modified Paths:
--------------
trunk/NSImage_SKExtensions.m
Modified: trunk/NSImage_SKExtensions.m
===================================================================
--- trunk/NSImage_SKExtensions.m 2023-08-01 09:30:37 UTC (rev 13555)
+++ trunk/NSImage_SKExtensions.m 2023-08-03 16:28:46 UTC (rev 13556)
@@ -2248,10 +2248,10 @@
NSInteger i, offset = 3 * ((NSInteger)info % 7);
for (i = 0; i < 3; i++)
out[i] = laserPointerRGB[offset + i];
- CGFloat f = 9.0 * in[0] * in[0];
- if (f < 1.0) {
+ CGFloat x = M_PI * in[0];
+ if (x < 1.0) {
for (i = 0; i < 3; i++)
- out[i] = 1.0 - f + f * out[i];
+ out[i] = 1.0 + x * x * (out[i] - 1.0);
}
- out[3] = 0.5 + 0.5 * cos(M_PI * in[0]);
+ out[3] = 0.5 + 0.5 * cos(x);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit