发信人: bfls (L4KevinX@newSMTH), 信区: ANSI
标 题: Re: 第二章作业 by pyzhu
发信站: 日月光华 (2008年07月10日19:55:09 星期四), 站内信件
代码相加是RGB色值相加的简略算法
所以有些会不准
比如暗蓝+暗黄
RGB结果是(0 0 128)+(128 128 0)=(128 128 128)亮黑
代码结果是3+4=0暗白
这是亮白的一半不是暗白- -
暗蓝+暗紫
RGB(0 0 128)+(128 0 128)=(128 0 255)事实上ansi没有这个颜色
【 在 uncertain (遗忘) 的大作中提到: 】
: 好像有道理
: 但还是不能完全解释我画的这些叠色
: 【 在 bfls (L4KevinX@newSMTH) 的大作中提到: 】
: : 前面的问题不大
: : 但相加溢出后似乎不是从0重新计
: : 透明色的本质是颜色的RGB叠加
: : 两个混色叠出一个纯色似乎不应该- -
--
※ 来源:·日月光华 bbs.fudan.edu.cn·[FROM: bbs.zixia.net]
※ 修改:·bfls 於 07月10日19:57:28 修改本文·[FROM: bbs.zixia.net]
Sender: bfls L4KevinX@newSMTH , Area: ANSI
Title: Re: Chapter 2 Homework by pyzhu
Sending site: Sun and Moon Guanghua Thursday, July 10, 2008 19:55:09, site mail
Code addition is a simple algorithm for adding RGB color values.
So some may not be accurate
For example, dark blue or dark yellow
The RGB result is 0 0 128 128 128 0 128 128 128 bright black
The result of the code is 3 4 0 dark white
This is half of bright white, not dull white
dark blue dark purple
RGB 0 0 128 128 0 128 128 0 255 In fact, ansi does not have this color
Mentioned in uncertain forgotten masterpiece:
: It seems reasonable
: But I still can’t fully explain the overlapping colors I painted.
: Mentioned in bfls L4KevinX@newSMTH's masterpiece:
: : The previous problem is not big.
: : But it doesn’t seem to restart from 0 after the addition overflows.
: : The essence of transparent color is the RGB superposition of colors
: : It seems inappropriate to overlap two mixed colors to produce a solid color.
Source: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: bbs.zixia.net]
Modification: bfls modified this article at 19:57:28 on July 10 [FROM: bbs.zixia.net]