发信人: Spirit (妖精雨·雨之魂·Revival), 信区: ANSI_Discuss
标 题: 第四讲·色彩和光影
发信站: 日月光华 (2007年01月17日17:42:06 星期三), 站内信件
色彩和光影 x-8-19-2-2-4
配色的原则 x-8-19-3-4
互补色
对比色
透明色 x-8-19-3-1/3
常用搭配
隐藏文字
渐变效果 x-8-19-4-4
立体效果 x-8-19-4-5
色彩基础
第二节已经介绍过ANSI的转义序列了,我们再来复习一下关于颜色的序列
BBS上可以用的颜色一共有16种,8种高亮色,8种低亮色,完整的色表如下
30 31 32 33 34 35 36 37
40 SS SS SS SS SS SS SS SS
41 SS SS SS SS SS SS SS SS
42 SS SS SS SS SS SS SS SS
43 SS SS SS SS SS SS SS SS
44 SS SS SS SS SS SS SS SS
45 SS SS SS SS SS SS SS SS
46 SS SS SS SS SS SS SS SS
47 SS SS SS SS SS SS SS SS
透明色
小时候我们的美术老师想必都都教过大家,三原色是红、黄、蓝,三原色是加色混
色法,就是说用这三种颜色的颜料可以调配出其他颜色。
但是ANSI中,我们用的是“三原光”,RGB系统,即红、绿、蓝。这是一种减色混色
法,它在计算机中使用的很多,也就是说,用这三种光能混合出其他颜色的光
三原色:红色+黄色+蓝色=黑色
三原光:红光+绿光+蓝光=白光
三原光的混合有如下规律:
无 光:黑=0
三原光:红=1 绿=2 蓝=4
混合光:黄=3=1+2=红+绿
紫=5=1+4=红+蓝
青=6=2+4=绿+蓝
白=7=1+2+4=红+绿+蓝
由这套混色原理就可以做出所谓的透明色效果
█ █ █ █
█ █ █ █
█ █ █ █ █ █
█ █ █ █
█ █ █ █ █ █
█ █ █ █ █ █
█ █ █ █ █ █ █
--
※ 来源:·日月光华 bbs.fudan.edu.cn·[FROM: 202.120.229.10]
※ 修改:·Spirit 於 01月18日23:14:28 修改本文·[FROM: 202.120.229.10]
Sender: Spirit Fairy Rain Rain Soul Revival, message area: ANSI Discuss
Title: Lecture 4 Color and Light and Shadow
Sending site: Sun and Moon Guanghua Wednesday, January 17, 2007 17:42:06, site mail
Color and light x 8 19 2 2 4
Principles of color matching x 8 19 3 4
complementary colors
Contrasting colors
Transparent x 8 19 3 1 3
Commonly used collocations
Hidden text
Gradient effect x 8 19 4 4
3D effect x 8 19 4 5
color basics
Section 2 has already introduced ANSI escape sequences. Let’s review the color sequences again.
There are a total of 16 colors available on BBS, 8 high-brightness colors and 8 low-brightness colors. The complete color list is as follows
30 31 32 33 34 35 36 37
40 SS SS SS SS SS SS SS
41 SS SS SS SS SS SS SS
42 SS SS SS SS SS SS SS
43 SS SS SS SS SS SS SS
44 SS SS SS SS SS SS SS
45 SS SS SS SS SS SS SS
46 SS SS SS SS SS SS SS
47 SS SS SS SS SS SS SS
Transparent color
When we were children, our art teachers must have taught us that the three primary colors are red, yellow, and blue, and that the three primary colors are additive colors.
Color method means that other colors can be mixed with these three colors of paint.
But in ANSI we use the Sanyuanguang RGB system, which is red, green and blue. This is a subtractive color mixing.
This method is used a lot in computers. That is to say, these three kinds of light energy are used to mix light of other colors.
Three primary colors red yellow blue black
Mihara light red light green light blue light white light
The mixing of Sanyuan light has the following rules:
no light black 0
Mihara Hikaru Red 1 Green 2 Blue 4
Mixed light yellow 3 1 2 red green
purple 5 1 4 red blue
cyan 6 2 4 green blue
white 7 1 2 4 red green blue
This set of color mixing principles can create the so-called transparent color effect.
Source: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 202.120.229.10]
Modification: Spirit modified this article on January 18, 23:14:28 [FROM: 202.120.229.10]