发信人: soulfox (小o&灵狐~以华丽之名), 信区: ANSI
标 题: Re: [组六]第二章作业 by williamqin
发信站: 日月光华 (2007年08月06日23:08:39 星期一), 站内信件
作业做得认真,透明色效果也正确,不过为啥你总是“心太乱”呢?肚子还痛么?
你平时也可以多尝试一下不同颜色叠加的效果吧,应该很有用处。
简化代码,你没有把简化后的代码贴出来嘛,作业要求没看清楚?
3. 简化以下代码。(书面提交,提交简化后代码及显示效果)
好吧,
不过我看了一下你精简后的代码,有跟wxbioman师兄一样的问题,就是
每个字符后面不用都跟一个*[m,如果后面一个字符要更换前面字符的高低亮
直接在后一字符颜色代码前面加0;就行了啊。
而且,你看到BC的前景色颜色都是一样的32,为何C还要写一个32在那里呢?
你看看这样:
*[1;4;5;31;45mA*[0;32;45mB*[42mC*[m
ABC
规范代码的意义够简洁,不过right
【 在 soulfox (小o&灵狐~以华丽之名) 的大作中提到: 】
: 标 题: [组六]第二章作业 by williamqin
: 发信站: 日月光华 (2007年08月06日22:49:21 星期一), 站内信件
:
: 【 以下文字转载自 soulfox 的信箱 】
: 【 原文由 williamqin 所发表 】
:
: 1. 使用透明色效果制作一个ANSI。(书面提交,形式不限)
:
:
:
: 我的心太乱
:
:
:
:
:
: 2. 简化以下代码。(书面提交,提交简化后代码及显示效果)
: *[1m*[4m*[5m*[33;45;31mA*[0m*[44;45;32mB*[0m*[42;32mC*[0m
:
: ABC
:
:
: 3. 规范代码的意义。(书面提交,字数不限)
: 我想主要是为了方便在不同终端,不同ansi爱好者之间进行交流吧@@
:
: --
: 沉恨细思,不如桃杏,犹解嫁东风
: ※ 来源:·日月光华 bbs.fudan.edu.cn·From:[奈落界]
: --
: ※ 转寄:·日月光华 bbs.fudan.edu.cn·[FROM: 10.100.108.77]
: ※ 修改:·soulfox 於 08月06日22:42:11 修改本文·[FROM: 10.85.48.11]
: --
: ※ 转载:·日月光华 bbs.fudan.edu.cn·[FROM: 10.85.48.11]
--
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ANSI 2007 暑期短期培训班
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
如有任何疑问,请到4区ANSI版咨询。报名事宜请参考ANSI版置底
※ 来源:·日月光华 bbs.fudan.edu.cn·[FROM: 10.85.48.11]
Sender: Soulfox Xiaoo&Linghu In the name of gorgeousness, message area: ANSI
Title: Re: [Group 6] Chapter 2 Homework by williamqin
Sending site: Sun and Moon Guanghua Monday, August 06, 2007 23:08:39, site mail
You did your homework carefully and the transparent color effect is correct. But why are you always so upset? Does your stomach still hurt?
You can also try out the effects of overlaying different colors. It should be very useful.
Simplify the code. Didn't you post the simplified code? I didn't understand the assignment requirements clearly.
3. Simplify the following code and submit it in writing. Submit the simplified code and display effect.
All right
But I took a look at your streamlined code and found the same problem as wxbioman.
Each character does not need to be followed by a *[m if the following character needs to change the highlight of the previous character.
Just add 0; in front of the next character color code and that's it.
Moreover, you can see that the foreground color of BC is the same 32. Why does C write a 32 there?
Look at this
*[1;4;5;31;45mA*[0;32;45mB*[42mC*[m
ABC
The meaning of the standard code is concise enough, but right
Mentioned in Soulfox Xiaoo&Linghu’s masterpiece in the name of gorgeousness:
: Title: [Group 6] Chapter 2 Homework by williamqin
: Sending site: Sun and Moon Guanghua Monday, August 06, 2007 22:49:21, site mail
:
: The following text is reproduced from soulfox’s mailbox
: Originally published by williamqin
:
: 1. Use transparent color effects to create an ANSI written submission in any form
:
:
:
: My heart is too confused
:
:
:
:
:
: 2. Simplify the following code and submit it in writing. Submit the simplified code and display effect.
: *[1m*[4m*[5m*[33;45;31mA*[0m*[44;45;32mB*[0m*[42;32mC*[0m
:
:ABC
:
:
: 3. The meaning of standard code. Written submission. No limit on the number of words.
: I think it is mainly to facilitate communication between different ansi enthusiasts on different terminals@@
:
:
: Thinking about it deeply is not as good as peach and apricot, but it is better to marry the east wind.
: Source: Sun and Moon Guanghua bbs.fudan.edu.cn From:[narakujie]
:
: Forward: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 10.100.108.77]
: Modification: soulfox modified this article at 22:42:11 on August 06 [FROM: 10.85.48.11]
:
: Reprint: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 10.85.48.11]
ANSI 2007 Summer Short-term Training Course
If you have any questions, please consult the ANSI version of Zone 4. For registration information, please refer to the bottom of the ANSI version.
Source: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 10.85.48.11]