本文介绍了RGB滤镜用于不同形式的色盲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的父亲是色盲的,并且我在游戏中工作的视觉很重要,我一直想要写一个过滤器的屏幕截图(甚至一些类型的着色器)模仿不同形式的色盲。

My father is color blind and given that I work in games where the visuals are important, I've always wanted to write a filter for screen shots (or even some type of shader) that emulated different forms of color blindness.

我看到很多引用,但从来没有能够跟踪算法。

I've seen plenty of references but never have been able to track down algorithms.

推荐答案

我的Google搜索提供了这一个,看起来正是你要找的。通过将每个R,G,B值乘以3个不同的百分比并将它们加在一起来模拟八个不同版本的色盲。

My Google search came up with this one, which appears to be exactly what you're looking for. Eight different versions of color blindness are simulated by multiplying each of the R,G,B values by 3 different percentages and adding them together.

(死链接)


(工作链接)

Working Archived Link (working link)

这篇关于RGB滤镜用于不同形式的色盲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 00:29