发信人: flubber (跳跳马), 信区: ASCIIart
标 题: 制作透明色中的常见错误
发信站: BBS 水木清华站 (Wed May 28 23:53:45 2003), 转信
关于透明色的最常见错误,就是把三原色系统和三原光系统互相混淆。
三原色:红黄蓝 三原光:红绿蓝
红+黄=橙 ←┈不同┈→ 红+绿=黄
黄+蓝=绿 ←┈不同┈→ 绿+蓝=靛
蓝+红=紫 ←┈相同┈→ 蓝+红=紫
三原色是描述物体反射光的颜色的,比如水彩画颜料,油漆,涂料。
三原光是描述物体自发光的颜色的,比如灯光,电视,计算机屏幕。
所谓透明,就是指光线能相互叠加,而不是把颜料相混合,所以应该用三原光系统。
不少人做透明色,弄出 黄+兰=绿。可能是小时候调水彩颜料的印象过于深刻。;-P
三原光系统中,黄色和紫色并非互补色,黄色加上紫色会得出浅红色。
黄+紫 =(红+绿)+(红+蓝)= 红+(红+绿+蓝)= 红+白 = 浅红
黄色和蓝色才是正宗的互补色, 它们的叠加才是纯灰。以上可以到photoshop中试验。
█▌
█▌
错误 错误 错误 正确 正确
补充一点,大家可能觉得,左边的三例错误也有透明效果啊
这种"透明"效果,部分是由于色块的边缘,产生两个方块交叠的感觉,
和颜色并没有关系(其实任意设定颜色,都会有交叠的感觉),
另一个原因是色彩近似,因而产生近似透明的感觉,其实仔细看就会发现并不准确。
另外一个常见错误是,表现互补色交叠的时候的灰色,往往就直接用*[47m
这是不合适的,用phototshop选取几种ansi颜色观察一下RGB值就明白了。
几种高亮色的对应代码都是该颜色的最大值FF,而对应的暗色是亮色的50% = 80
比如暗蓝色*[44m的RGB值是00 00 80,暗黄色*[43m的RGB值是80 80 00,
而唯独黑白两色例外,高亮白是FF FF FF,而低亮白*[47m却不是它的一半,
而是C0 C0 C0。高亮黑色*[1;30m的颜色才是真正的50%灰色80 80 80
50%蓝(00 00 80) + 50%黄(80 80 00)= 50%灰(80 80 80)
如果用背景的浅灰色来表现叠加,会发现叠加区域明显比周围亮出很多,
明显不合理,正确的方法应该用前景高亮灰+色块来表现叠加区域。
█▌
█▌
错误 正确
Sender: flubber hopping vault horse, message area: ASCIIart
Title: Common mistakes in making transparent colors
Sending station: BBS Shuimu Tsinghua Station Wed May 28 23:53:45 2003, forwarded
The most common mistake about transparent colors is to confuse the three-primary color system with the three-primary light system.
Three primary colors: red, yellow, and blue. Three primary colors: red, green, and blue.
red yellow orange different red green yellow
yellow blue green different green blue indigo
blue red purple same blue red purple
The three primary colors describe the colors of light reflected by objects, such as watercolor paints and paints.
Mihara light describes the color of self-illumination of objects, such as lights, televisions, and computer screens.
The so-called transparency means that the light can superimpose each other instead of mixing the pigments, so the Miyuan light system should be used.
Many people make transparent colors and end up with yellow, blue, and green. Maybe it’s because they were too impressed with mixing watercolor paints when they were young ;P
In the Miyuan light system, yellow and purple are not complementary colors. Yellow plus purple will produce light red.
Yellow Purple Red Green Red Blue Red Red Green Blue Red White Light Red
Yellow and blue are authentic complementary colors, and their superimposition is pure gray. You can try the above in photoshop
Error Error Error Correct Correct
One more thing, you may think that the three errors on the left also have a transparency effect.
This "transparency" effect is partly due to the edges of the color blocks, creating the feeling of two overlapping squares.
It has nothing to do with color. In fact, if you set the color arbitrarily, there will be an overlapping feeling.
Another reason is that the colors are similar, resulting in an almost transparent feeling. In fact, if you look closely, you will find that it is not accurate.
Another common mistake is to use *[47m directly to express gray when complementary colors overlap.
This is inappropriate. Use photoshop to select several ansi colors and observe the RGB values. You will understand.
The corresponding codes of several highlight colors are the maximum value FF of the color, and the corresponding dark color is 50% of the bright color 80
For example, the RGB value of dark blue*[44m is 00 00 80 and the RGB value of dark yellow*[43m is 80 80 00
The only exception is black and white. High-gloss white is FF FF FF, but low-gloss white*[47m is not half of it.
But C0 C0 C0 high gloss black*[1;30m color is the real 50% gray 80 80 80
50% blue 00 00 80 50% yellow 80 80 00 50% gray 80 80 80
If you use the light gray background to represent the overlay, you will find that the overlay area is obviously much brighter than the surrounding area.
Obviously unreasonable. The correct method should be to use a highlighted gray block in the foreground to represent the overlay area.
Error Correct