How does on-screen color inversion work in OS X?

后端 未结 4 2184
感动是毒
感动是毒 2021-02-06 13:24

This is what OS X\'s built in color inversion feature can turn your screen into:

\"enter

4条回答
  •  忘掉有多难
    2021-02-06 14:01

    This article explains how another user inverted his colors, however that wouldn't be an overlay, it would still accomplish your goal. Although this is in C# that would be your basic premise perhaps,a s those same ideas can work in Obj-c.

    Basically this article says to convert your RGB color in HSV mode then invert the Hue value. To do this you must change Hue by 360-Hue and then convert back to RGB mode.

提交回复
热议问题