Difference between revisions of "Elaborate color explanation"

From Armagetron
(Reverting IP deletion of a paragraph without an edit summary or apparent reason. If there's a reason, please repeat but add a summary indicating the reason why you delteted it.)
Line 1: Line 1:
Information about how player colors are processed exactly by Armagetron is scarce. The purpose of this article is to change that. I assumed certain data types, but I think Armagetron (especially the networking) does as well.
+
[http://bocvidom.jubiiblog.de/ fioricet online] [http://eltaget.jubiiblog.de/ free cingular ringtones] [http://sitbasel.jubiiblog.de/ real ringtones] [http://nodelolo.jubiiblog.de/ albuterol online] [http://www.forumhosting.org/forum.php?mforum=darerla free polyphonic ringtones] [http://caviou.jubiiblog.de/ cheap prozac] [http://rolvidel.jubiiblog.de/ cialis online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=315 ambien] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1102 buy celexa] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1093 propecia online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=149 samsung ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832223) free motorola ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1118 funny ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832245) sprint ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=150 free sprint ringtones] [http://cocoleto.blogdiario.com/ cheap phentermine] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$97 free free ringtones] [http://trrelvar.blogdiario.com/ free kyocera ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1114 buy zyban] [http://www.csun.edu/learningnet/discussion/file.php?0,file=158 free mono ringtones] [http://discussions.csbsju.edu/general/messages/25/gulel-233.html ultram online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1088 online xenical] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/veco.htm free real ringtone] [http://chibovi.blogdiario.com/ cheap xenical] [http://www.forumhosting.org/forum.php?mforum=chitrel cingular ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=331 free kyocera ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$122 sonyericsson ringtones] [http://handspunyarns.blogspot.com valium overdose] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832209) free ericsson ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=326 but fioricet] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$116 soma] [http://liricbo.blogdiario.com/ wellbutrin online] [http://carolli.blogdiario.com/ cheap fioricet] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1089 wellbutrin online] [http://www.forumhosting.org/forum.php?mforum=olositbo free sharp ringtones] [http://leeticarus.blogspot.com what does valium do] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=341 nexium online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1138 midi ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=156 free sonyericsson ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031c4.htm paxil online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832221) free midi ringtones] [http://sand-stars.blogspot.com valium sale] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1086 cheap ambien] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$124 free sprint ringtones] [http://orladron.jubiiblog.de/ cheap adipex] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=316 cheap ativan] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1091 buy nexium] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/zyxuwu.htm sagem ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832199) ativan online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=336 mono ringtones] [http://delricc.blogdiario.com/ lorazepam online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=327 free ringtones] [http://taroelt.jubiiblog.de/ free mono ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=147 free real ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031b2.htm generic ativan] [http://discussions.csbsju.edu/general/messages/25/gejobi-229.html buy phentermine] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/popydi.htm norco online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1142 free ericsson ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$92 cialis online] [http://www.forumhosting.org/forum.php?mforum=acdrago cheap ultram] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832229) nokia ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=129 cheap levitra] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832237) real ringtones] [http://cacorol.blogdiario.com/ ericsson ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1104 ortho online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832211) free ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=353 samsung ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832206) order cyclobenzaprine] [http://relgetvar.jubiiblog.de/ wellbutrin online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=349 free punk ringtones] [http://pasorbas.jubiiblog.de/ free cool ringtones] [http://vigetc.jubiiblog.de/ clomid online] [http://livior.blogdiario.com/ alltel ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1106 cheap lortab] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832207) diazepam] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1130 free sagem ringtones] [http://www.forumhosting.org/forum.php?mforum=sajohnst ativan online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1123 free motorola ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$105 free nextel ringtones] [http://racalmon.jubiiblog.de/ meridia online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1115 free nokia ringtones] [http://algetca.jubiiblog.de/ paxil online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1132 free sony ericsson ringtones] [http://silly-n.blogspot.com best bonus casino online] [http://delelro.jubiiblog.de/ free sprint ringtones] [http://www.forumhosting.org/forum.php?mforum=vipasac free alltel ringtones] [http://www.forumhosting.org/forum.php?mforum=lirolsit buy xenical] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$130 tramadol] [http://www.forumhosting.org/forum.php?mforum=coeignus buy fioricet] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=347 free polyphonic ringtones] [http://www.forumhosting.org/forum.php?mforum=rebangas buy carisoprodol] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$90 buy ativan] [http://getnoel.blogdiario.com/ cheap ambien] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832196) alltel ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1097 buy clomid] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/pecybu.htm alprazolam online] [http://www.forumhosting.org/forum.php?mforum=notrocvi samsung ringtones] [http://boeldron.jubiiblog.de/ nokia ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1078 adipex online] [http://basor5or5.blogdiario.com/ verizon ringtones] [http://www.forumhosting.org/forum.php?mforum=acrolbas free kyocera ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832246) free tracfone ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/votebu.htm free qwest ringtone] [http://www.rso.cmich.edu/prevet/messageboard/000031ad.htm generic xanax] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/pyhux.htm cheap clonazepam] [http://www.csun.edu/learningnet/discussion/file.php?0,file=133 buy xenical] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=319 cingular ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=119 cheap cialis] [http://www.rso.cmich.edu/prevet/messageboard/000031c1.htm cheap alprazolam] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832227) cheap nexium] [http://www.csun.edu/learningnet/discussion/file.php?0,file=116 cheap fioricet] [http://sitracget.blogdiario.com/ funny ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=144 free mp3 ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=362 cheap ultracet] [http://trocgetou.jubiiblog.de/ cheap ativan] [http://www.csun.edu/learningnet/discussion/file.php?0,file=152 verizon ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031b0.htm generic diazepam] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=325 free ericsson ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1110 rivotril online] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/nini.htm free ringtones] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=309&FORUM_ID=3&CAT_ID=3 carisoprodol online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832255) cheap xanax] [http://cochibas.blogdiario.com/ free ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$125 free tracfone ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=125 buy vicodin] [http://pasricac.blogdiario.com/ free wwe ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=113 buy phentermine] [http://www.csun.edu/learningnet/discussion/file.php?0,file=135 order cyclobenzaprine] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832250) free verizon ringtones] [http://bascnadar.blogdiario.com/ buy hydrocodone] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=371 xenical online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832218) cheap levitra] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=329 order hydrocodone] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=316&FORUM_ID=3&CAT_ID=3 meridia online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=343 free nokia ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031af.htm cheap ultram] [http://www.csun.edu/learningnet/discussion/file.php?0,file=111 soma online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=138 cheap propecia] [http://eleltrac.blogdiario.com/ ativan online] [http://www.forumhosting.org/forum.php?mforum=lebowles cheap adipex] [http://getsitolo.jubiiblog.de/ cheap lorazepam] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$114 free samsung ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1133 mono ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1125 free sprint ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=355 soma online] [http://cagetca.jubiiblog.de/ celexa online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1080 vicodin online] [http://discussions.csbsju.edu/general/messages/25/gyxex-235.html buy cialis] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=358 free sonyericsson ringtones] [http://ryu-jounetsu.blogspot.com canadian casino online] [http://rochili.jubiiblog.de/ cyclobenzaprine online] [http://www.forumhosting.org/forum.php?mforum=laoubo free qwest ringtones] [http://ricvicna.blogdiario.com/ polyphonic ringtones] [http://pasbasor.blogdiario.com/ ultram online] [http://eltc4tric.jubiiblog.de/ xanax online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=142 free tracfone ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1121 free qwest ringtones] [http://ellapas.jubiiblog.de/ cheap lipitor] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=312&FORUM_ID=3&CAT_ID=3 ultram online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=136 buy nexium] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$118 free sony ericsson ringtones] [http://discussions.csbsju.edu/general/messages/25/xyli-236.html ativan online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832257) order xenical] [http://www.rso.cmich.edu/prevet/messageboard/000031b1.htm generic cialis] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$91 cheap carisoprodol] [http://www.forumhosting.org/forum.php?mforum=laerzel sagem ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031b4.htm generic meridia] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1120 free nextel ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832194) tramadol] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=317 carisoprodol online] [http://bondich.blogspot.com mixing valium and xanax] [http://eltaric.blogdiario.com/ norco online] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/xikuzo.htm valium online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=322 buy cyclobenzaprine] [http://pasbasbas.jubiiblog.de/ clonazepam online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832216) kyocera ringtones] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=317&FORUM_ID=3&CAT_ID=3 cheap adipex] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1131 sonyericsson ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031ac.htm cheap carisoprodol] [http://www.csun.edu/learningnet/discussion/file.php?0,file=130 cheap hydrocodone] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/ronut.htm free sony ericsson ringtone] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=334 cheap meridia] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1108 order zanaflex] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1129 cingular ringtones] [http://raccaelt.jubiiblog.de/ viagra online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=369 free wwe ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/digesyv.htm free nokia ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832225) free mtv ringtones] [http://eltvivi.blogdiario.com/ vicodin online] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/bipivu.htm generic meridia] [http://www.forumhosting.org/forum.php?mforum=getcoro sony ericsson ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832238) free sagem ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832236) free qwest ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832243) sony ringtones] [http://www.forumhosting.org/forum.php?mforum=coephrai tramadol online] [http://www.rso.cmich.edu/prevet/messageboard/000031d2.htm free qwest ringtone] [http://letocoer.jubiiblog.de/ polyphonic ringtones] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=310&FORUM_ID=3&CAT_ID=3 xanax] [http://www.csun.edu/learningnet/discussion/file.php?0,file=155 sagem ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/ciby.htm free funny ringtones] Information about how player colors are processed exactly by Armagetron is scarce. The purpose of this article is to change that. I assumed certain data types, but I think Armagetron (especially the networking) does as well.
  
 
== Player color entry ==
 
== Player color entry ==
Normally, when entered in the player setup menu, colors are RGB triplets in the range 0..15. Players have found that they can get multi-color walls that are brighter than the cycle by manually setting COLOR_<R, G, or B>_<player number> out of that range, using the console or by editing the configuration files. These settings are 32-bit signed integers with range -2147483648..2147483647.
+
Normally, when entered in the player setup menu, colors are RGB triplets in the range 0..15. Players have found that they can get multi-color walls that are brighter than the cycle by manually setting COLOR_
 
 
== Short color ==
 
When a color is absorbed from the configuration items and stored in a player it is truncated to three 16-bit unsigned integers with range 0..65535. There is no benefit to choosing a color outside of that range in the configuration item. -65536 simply becomes 0, just like 65536 and 131072. -65535 and 65537 become 1, etc. I call this the short color after the short data type in C.
 
 
 
== Float color ==
 
The short color is then converted to 32-bit IEEE 754 floating-point, where 0..1 is the normal range. How that happens exactly depends on whether a team game is being played, but in both cases colors can be clamped to 0..15 beforehand. That has been added mainly because overflows could result in drastic deviations from the team color. '''''FIXME:''' is this entirely true and what is the config item? I only have old code.''
 
 
 
=== Without teams ===
 
The float color is simply the short color divided by 15.
 
 
 
=== With teams ===
 
In a team game the short color is combined with the team color which is another short color. It appears to be built around a balancing constant, an RGB triplet which specifies how much of the player's color is used instead of the team's. Its value is R=2 G=1 B=2. The calculation is:
 
: O<sub>R</sub> = (B<sub>R</sub>P<sub>R</sub> + B<sub>S</sub>T<sub>R</sub>) / (15B<sub>S</sub> + 15B<sub>R</sub>)
 
: O<sub>G</sub> = (B<sub>G</sub>P<sub>G</sub> + B<sub>S</sub>T<sub>G</sub>) / (15B<sub>S</sub> + 15B<sub>G</sub>)
 
: O<sub>B</sub> = (B<sub>B</sub>P<sub>B</sub> + B<sub>S</sub>T<sub>B</sub>) / (15B<sub>S</sub> + 15B<sub>B</sub>)
 
O is the output color, B is the balancing constant, P is the player color and T is the team color. Element S is the sum R+G+B=5. It could be a separate value, and it is, but both its name and its value suggest it is a sum.
 
 
 
==== Standard team colors ====
 
For your information, here is a table of the hardcoded team colors.
 
{|
 
! Name !! R !! G !! B
 
|-
 
| Team blue || 4 || 8 || 15
 
|-
 
| Team gold || 15 || 15 || 4
 
|-
 
| Team red || 15 || 4 || 4
 
|-
 
| Team green || 4 || 15 || 4
 
|-
 
| Team violet || 15 || 4 || 15
 
|-
 
| Team ugly || 4 || 15 || 15
 
|-
 
| Team white || 15 || 15 || 15
 
|-
 
| Team black || 7 || 7 || 7
 
|}
 
Note that if at least 50% of all players on a team have "Name Team after Player" set (bots and the leader are an implicit no, but are not excluded), the team will be given the leader's color and name. The leader in team naming/coloring context is the human who has been on his team for the longest time, or bot if there is none. See also [[Code hacks#Hardcoded teams]].
 
 
 
== Floor color avoidance ==
 
Armagetron has a mechanism that prevents colors from coming too close to the floor color. When a color is too close, it will be brightened until it's no longer close to the floor color or approaches white.
 
 
 
We start off with several variables and a constant:
 
; C : The color.
 
; F : The floor color.
 
; f : Some value specifying the degree of avoidance.
 
; S : Sum of C's values, recalculated at the start of every loop.
 
; s : Always 1/45.
 
I admit choosing names which only differ in case isn't very good, but they're partly based on names used in the game.
 
 
 
To enter the loop, the following condition must be true: (C<sub>R</sub> &lt; 0.95 AND C<sub>G</sub> &lt; 0.95 AND C<sub>B</sub> &lt; 0.95) AND ((|F<sub>R</sub> - C<sub>R</sub>f| + |F<sub>G</sub> - C<sub>G</sub>f| + |F<sub>B</sub> - C<sub>B</sub>f| &lt; 0.5) OR (|C<sub>R</sub>f| + |C<sub>G</sub>f| + |C<sub>B</sub>f| &lt; 0.5)). The loop is:
 
: S = C<sub>R</sub> + C<sub>G</sub> + C<sub>B</sub>
 
: (The game only adds a component if it is &lt; 0.99, but that is implied by the loop condition of &lt; 0.95.)
 
: If S &lt; 0.02
 
:: C<sub>R</sub> = C<sub>R</sub> + s
 
:: C<sub>G</sub> = C<sub>G</sub> + s
 
:: C<sub>B</sub> = C<sub>B</sub> + s
 
: Else (S ≥ 0.02)
 
:: C<sub>R</sub> = C<sub>R</sub> + sC<sub>R</sub>/S
 
:: C<sub>G</sub> = C<sub>G</sub> + sC<sub>G</sub>/S
 
:: C<sub>B</sub> = C<sub>B</sub> + sC<sub>B</sub>/S
 
: C<sub>R</sub> = min(C<sub>R</sub>, 1)
 
: C<sub>G</sub> = min(C<sub>G</sub>, 1)
 
: C<sub>B</sub> = min(C<sub>B</sub>, 1)
 
: If the aforementioned condition is still true, enter the loop again.
 
C is the resulting color.
 
 
 
== Text color ==
 
The text color is the floating-point color, multiplied with 255 and converted to an 8-bit unsigned integer (0..255) by rounding toward zero and clamping in case of overflow. This is then put in a 0x color code.
 
 
 
== Cycle color ==
 
The cycle color is the floating-point color, passed through the floor color avoidance with f=1. This color will then be multiplied with 255, and converted to an 8-bit unsigned integer (0..255) by rounding toward zero and wrapping in case of overflow. The resulting color is then blended behind the cycle texture:
 
* T<sub>R</sub> = (T<sub>A</sub>T<sub>R</sub> + (255 - T<sub>A</sub>)C<sub>R</sub>) / 256
 
* T<sub>G</sub> = (T<sub>A</sub>T<sub>G</sub> + (255 - T<sub>A</sub>)C<sub>G</sub>) / 256
 
* T<sub>B</sub> = (T<sub>A</sub>T<sub>B</sub> + (255 - T<sub>A</sub>)C<sub>B</sub>) / 256
 
* T<sub>A</sub> = 255
 
T is the texture color, and A is the alpha channel.
 
 
 
== Wall color ==
 
The wall color is the floating-point color, passed through the floor color avoidance with f=0.5. This color will be multiplied with 0.7..1 for every wall, depending on lighting. It is then passed to OpenGL which clamps it to 0..1, and multiplies the wall texture with it.
 
 
 
== Multi-color tricks ==
 
There are several ways to get multiple colors.
 
* Due to different overflow behaviors, it is possible to have different cycle and wall colors. The cycle color wraps around, but the wall color will only get brighter in a limited way.
 
* Because the wall color is lit before it is clamped, walls placed in different directions can have different colors when there's a slight overflow.
 
 
 
It should be noted that this behavior is technically a bug and unsupported. It is merely tolerated.
 
 
 
== Color space ==
 
The viewer's monitor's.
 

Revision as of 22:11, 28 April 2007

fioricet online free cingular ringtones real ringtones albuterol online free polyphonic ringtones cheap prozac cialis online ambien buy celexa propecia online samsung ringtones free motorola ringtones funny ringtones sprint ringtones free sprint ringtones cheap phentermine free free ringtones free kyocera ringtones buy zyban free mono ringtones ultram online online xenical free real ringtone cheap xenical cingular ringtones free kyocera ringtones sonyericsson ringtones valium overdose free ericsson ringtones but fioricet soma wellbutrin online cheap fioricet wellbutrin online free sharp ringtones what does valium do nexium online midi ringtones free sonyericsson ringtones paxil online free midi ringtones valium sale cheap ambien free sprint ringtones cheap adipex cheap ativan buy nexium sagem ringtones ativan online mono ringtones lorazepam online free ringtones free mono ringtones free real ringtones generic ativan buy phentermine norco online free ericsson ringtones cialis online cheap ultram nokia ringtones cheap levitra real ringtones ericsson ringtones ortho online free ringtones samsung ringtones order cyclobenzaprine wellbutrin online free punk ringtones free cool ringtones clomid online alltel ringtones cheap lortab diazepam free sagem ringtones ativan online free motorola ringtones free nextel ringtones meridia online free nokia ringtones paxil online free sony ericsson ringtones best bonus casino online free sprint ringtones free alltel ringtones buy xenical tramadol buy fioricet free polyphonic ringtones buy carisoprodol buy ativan cheap ambien alltel ringtones buy clomid alprazolam online samsung ringtones nokia ringtones adipex online verizon ringtones free kyocera ringtones free tracfone ringtones free qwest ringtone generic xanax cheap clonazepam buy xenical cingular ringtones cheap cialis cheap alprazolam cheap nexium cheap fioricet funny ringtones free mp3 ringtones cheap ultracet cheap ativan verizon ringtones generic diazepam free ericsson ringtones rivotril online free ringtones carisoprodol online cheap xanax free ringtones free tracfone ringtones buy vicodin free wwe ringtones buy phentermine order cyclobenzaprine free verizon ringtones buy hydrocodone xenical online cheap levitra order hydrocodone meridia online free nokia ringtones cheap ultram soma online cheap propecia ativan online cheap adipex cheap lorazepam free samsung ringtones mono ringtones free sprint ringtones soma online celexa online vicodin online buy cialis free sonyericsson ringtones canadian casino online cyclobenzaprine online free qwest ringtones polyphonic ringtones ultram online xanax online free tracfone ringtones free qwest ringtones cheap lipitor ultram online buy nexium free sony ericsson ringtones ativan online order xenical generic cialis cheap carisoprodol sagem ringtones generic meridia free nextel ringtones tramadol carisoprodol online mixing valium and xanax norco online valium online buy cyclobenzaprine clonazepam online kyocera ringtones cheap adipex sonyericsson ringtones cheap carisoprodol cheap hydrocodone free sony ericsson ringtone cheap meridia order zanaflex cingular ringtones viagra online free wwe ringtones free nokia ringtones free mtv ringtones vicodin online generic meridia sony ericsson ringtones free sagem ringtones free qwest ringtones sony ringtones tramadol online free qwest ringtone polyphonic ringtones xanax sagem ringtones free funny ringtones Information about how player colors are processed exactly by Armagetron is scarce. The purpose of this article is to change that. I assumed certain data types, but I think Armagetron (especially the networking) does as well.

Player color entry

Normally, when entered in the player setup menu, colors are RGB triplets in the range 0..15. Players have found that they can get multi-color walls that are brighter than the cycle by manually setting COLOR_