Difference between revisions of "Elaborate color explanation"

From Armagetron
m (Reverted edits by 220.215.227.227 (Talk); changed back to last version by Wrtlprnft)
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://www.hollins.edu/ubb/Forum32/HTML/000312.html ambien online] [http://www.hollins.edu/ubb/Forum32/HTML/000337.html cheap albuterol] [http://dcc.syr.edu/dforum/message.asp?MessageID=49018 cialis online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49035 ambien online] [http://bugzilla.internet2.edu/attachment.cgi?id=746 free sagem ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49025 norco online] [http://ist.greenville.edu/drupal/files/puweso.html meridia online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/cibedis.htm cheap nexium] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/zivy.htm mono ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000352.html cheap hgh] [http://bugzilla.internet2.edu/attachment.cgi?id=754 ultram online] [http://ist.greenville.edu/drupal/files/ruwyze.html cheap ativan] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/linefej.htm buy wellbutrin] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/rofev.htm free free ringtones] [http://ist.greenville.edu/drupal/files/pobiwi.html cheap diazepam] [http://bugzilla.internet2.edu/attachment.cgi?id=751 free sprint ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000345.html lortab online] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/bopogo.htm carisoprodol online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49071 verizon ringtones] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/relu.htm buy clomid] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/sifus.htm cheap xenical] [http://bugzilla.internet2.edu/attachment.cgi?id=759 order xanax] [http://www.hollins.edu/ubb/Forum32/HTML/000360.html free ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=43 cheap wellbutrin] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=15 buy carisoprodol] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/DikVolirev free tracfone ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/popuxo.htm sharp ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000291.html ativan online] [http://ist.greenville.edu/drupal/files/covubi.html norco online] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/wetule.htm sony ericsson ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000362.html free tracfone ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49075 free sonyericsson ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=48901 cheap soma] [http://www.hollins.edu/ubb/Forum32/HTML/000293.html order meridia] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/gelol.htm zyban online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/rigyse.htm online clonazepam] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/kohe.htm free music ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/pybex.htm cyclobenzaprine online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/pero.htm ativan online] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/huvixu.htm cheap paxil] [http://grid.unimelb.edu.au/twiki/pub/Main/JackLawson/nunuso.htm cheap ativan] [http://dcc.syr.edu/dforum/message.asp?MessageID=49046 but nexium] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/cohufyk.htm mp3 ringtones] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/vekorot.htm hgh online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/kuky.htm propecia online] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=268 free samsung ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BettySmith/kyzefe.htm ortho] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/wydyty.htm but zyban] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/gefu.htm free punk ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000340.html lipitor online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/ruviti.htm mtv ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000346.html vigrx online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=41 lorazepam online] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/RingoFloper buy fioricet] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/tuju.htm lorazepam online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/sypev.htm free cool ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=30 free qwest ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000289.html diazepam online] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/kuhufid.htm tenuate online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49028 clonazepam online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49015 fioricet online] [http://bugzilla.internet2.edu/attachment.cgi?id=725 order ativan] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=36 clonazepam online] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/zivesup.htm propecia online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49061 mp3 ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/donyki.htm buy hydrocodone] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/hywi.htm carisoprodol online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49051 didrex online] [http://www.hollins.edu/ubb/Forum32/HTML/000300.html online levitra] [http://bugzilla.internet2.edu/attachment.cgi?id=738 free nextel ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000356.html zyban online] [http://bugzilla.internet2.edu/attachment.cgi?id=736 mp3 ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=38 levitra] [http://www.hollins.edu/ubb/Forum32/HTML/000341.html buy celexa] [http://grid.unimelb.edu.au/twiki/pub/Main/NoriJohn/rupo.htm tracfone ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=27 adipex online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49056 free ringtones] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/wypo.htm free music ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=29 nextel ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49054 nokia ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/putyh.htm levitra online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/wozone.htm free free ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49049 cheap propecia] [http://www.hollins.edu/ubb/Forum32/HTML/000320.html cheap nexium] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/piwyh.htm cialis] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=250 buy soma] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=263 mp3 ringtones] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/BillKukin tramadol online] [http://ist.greenville.edu/drupal/files/xuxuw.html phentermine online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49059 funny ringtones] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/zupu.htm cheap nexium] [http://www.hollins.edu/ubb/Forum32/HTML/000316.html wellbutrin online] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/runuz.htm adipex online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=23 cheap cialis] [http://ist.greenville.edu/drupal/files/rire.html cheap ultram] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/hulupeg.htm free alltel ringtones] [http://grid.unimelb.edu.au/twiki/pub/Main/NoriJohn/nywytew.htm funny ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/cevo.htm funny ringtones] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/nidexyk.htm celexa online] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/pelyvug.htm real ringtones] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/LeonPokert free free ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=33 samsung ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=757 viagra online] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/pusug.htm diazepam online] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/byvuf.htm ultram online] [http://bugzilla.internet2.edu/attachment.cgi?id=758 vicodin online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=35 alprazolam online] [http://ist.greenville.edu/drupal/files/tego.html propecia online] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=257 diazepam online] [http://www.hollins.edu/ubb/Forum32/HTML/000364.html free mp3 ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=733 cheap meridia] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/xyvibi.htm cheap meridia] [http://www.hollins.edu/ubb/Forum32/HTML/000359.html free nokia ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/lyxex.htm buy adipex] [http://ist.greenville.edu/drupal/files/huduc.html xenical online] [http://ist.greenville.edu/drupal/files/nezy.html hydrocodone] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/kyxud.htm cingular ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000375.html sagem ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000286.html xanax online] [http://www.hollins.edu/ubb/Forum32/HTML/000338.html cheap lisinopril] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/wybuk.htm funny ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=48909 valium online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=51 tracfone ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/gotu.htm free samsung ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49020 cheap ativan] [http://www.hollins.edu/ubb/Forum32/HTML/000386.html kyocera ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=19 online xanax] [http://grid.unimelb.edu.au/twiki/pub/Main/NoriJohn/xehepoc.htm free mp3 ringtones] [http://ist.greenville.edu/drupal/files/gogo.html tramadol online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=32 free motorola ringtones] [http://ist.greenville.edu/drupal/files/typutu.html free samsung ringtones] [http://grid.unimelb.edu.au/twiki/pub/Main/JackLawson/fuju.htm adipex online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49040 order xenical] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/vyxypu.htm cheap pharmacy online] [http://www.hollins.edu/ubb/Forum32/HTML/000367.html real ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/tirev.htm cheap vicodin] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/gogy.htm ultram online] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/woty.htm didrex online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=16 valium] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=258 buy cialis] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=252 cheap phentermine] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BettySmith/bogo.htm cheap prozac] [http://bugzilla.internet2.edu/attachment.cgi?id=728 cingular ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000378.html free mono ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000297.html cheap alprazolam] [http://www.hollins.edu/ubb/Forum32/HTML/000355.html hoodia online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/widokyj.htm xanax online] [http://www.hollins.edu/ubb/Forum32/HTML/000373.html polyphonic ringtones] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/jotu.htm lorazepam online] [http://www.hollins.edu/ubb/Forum32/HTML/000366.html qwest ringtones] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/tytugok.htm diethylpropion online] [http://ist.greenville.edu/drupal/files/wywe.html didrex online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/toro.htm but norco] [http://ist.greenville.edu/drupal/files/sodere.html cheap viagra] [http://dcc.syr.edu/dforum/message.asp?MessageID=49042 wellbutrin online] [http://www.hollins.edu/ubb/Forum32/HTML/000385.html free wwe ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BettySmith/pybido.htm cheap lisinopril] [http://bugzilla.internet2.edu/attachment.cgi?id=734 free mono ringtones] [http://grid.unimelb.edu.au/twiki/pub/Main/NoriJohn/woco.htm free nokia ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000379.html free alltel ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49069 free music ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=745 free real ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/liko.htm cheap tramadol] [http://ist.greenville.edu/drupal/files/potyke.html but ambien] [http://bugzilla.internet2.edu/attachment.cgi?id=739 nokia ringtones] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=265 qwest ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000287.html fioricet online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49038 cheap lorazepam] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/AlexandrMumer cheap diazepam] [http://www.hollins.edu/ubb/Forum32/HTML/000381.html free cool ringtones] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/xuropys.htm cheap meridia] [http://dcc.syr.edu/dforum/message.asp?MessageID=49062 free nextel ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000323.html cheap propecia] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/wyfyzil.htm carisoprodol online] [http://ist.greenville.edu/drupal/files/cykekud.html cheap wellbutrin] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/xuvoz.htm tracfone ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49068 free sprint ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000372.html verizon ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/tibyx.htm fioricet online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=48 didrex online] [http://ist.greenville.edu/drupal/files/lebu.html alprazolam online] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/sirid.htm cheap cyclobenzaprine] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=264 nextel ringtones] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/TimLeen carisoprodol online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/gigyfy.htm nextel ringtones] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/tezowi.htm cheap ultram] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/cytic.htm buy valium] [http://www.hollins.edu/ubb/Forum32/HTML/000387.html free sony ringtones] [http://ist.greenville.edu/drupal/files/kugidez.html fioricet online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=45 nexium online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49047 ultracet online] [http://ist.greenville.edu/drupal/files/binyc.html free ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/wedihef.htm jazz ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/seluweg.htm hoodia online] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/SebastianGekson mp3 ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=48955 xanax online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=46 order ultracet] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=13 tramadol online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49031 levitra online] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=50 free 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 11:02, 4 May 2007

ambien online cheap albuterol cialis online ambien online free sagem ringtones norco online meridia online cheap nexium mono ringtones cheap hgh ultram online cheap ativan buy wellbutrin free free ringtones cheap diazepam free sprint ringtones lortab online carisoprodol online verizon ringtones buy clomid cheap xenical order xanax free ringtones cheap wellbutrin buy carisoprodol free tracfone ringtones sharp ringtones ativan online norco online sony ericsson ringtones free tracfone ringtones free sonyericsson ringtones cheap soma order meridia zyban online online clonazepam free music ringtones cyclobenzaprine online ativan online cheap paxil cheap ativan but nexium mp3 ringtones hgh online propecia online free samsung ringtones ortho but zyban free punk ringtones lipitor online mtv ringtones vigrx online lorazepam online buy fioricet lorazepam online free cool ringtones free qwest ringtones diazepam online tenuate online clonazepam online fioricet online order ativan clonazepam online propecia online mp3 ringtones buy hydrocodone carisoprodol online didrex online online levitra free nextel ringtones zyban online mp3 ringtones levitra buy celexa tracfone ringtones adipex online free ringtones free music ringtones nextel ringtones nokia ringtones levitra online free free ringtones cheap propecia cheap nexium cialis buy soma mp3 ringtones tramadol online phentermine online funny ringtones cheap nexium wellbutrin online adipex online cheap cialis cheap ultram free alltel ringtones funny ringtones funny ringtones celexa online real ringtones free free ringtones samsung ringtones viagra online diazepam online ultram online vicodin online alprazolam online propecia online diazepam online free mp3 ringtones cheap meridia cheap meridia free nokia ringtones buy adipex xenical online hydrocodone cingular ringtones sagem ringtones xanax online cheap lisinopril funny ringtones valium online tracfone ringtones free samsung ringtones cheap ativan kyocera ringtones online xanax free mp3 ringtones tramadol online free motorola ringtones free samsung ringtones adipex online order xenical cheap pharmacy online real ringtones cheap vicodin ultram online didrex online valium buy cialis cheap phentermine cheap prozac cingular ringtones free mono ringtones cheap alprazolam hoodia online xanax online polyphonic ringtones lorazepam online qwest ringtones diethylpropion online didrex online but norco cheap viagra wellbutrin online free wwe ringtones cheap lisinopril free mono ringtones free nokia ringtones free alltel ringtones free music ringtones free real ringtones cheap tramadol but ambien nokia ringtones qwest ringtones fioricet online cheap lorazepam cheap diazepam free cool ringtones cheap meridia free nextel ringtones cheap propecia carisoprodol online cheap wellbutrin tracfone ringtones free sprint ringtones verizon ringtones fioricet online didrex online alprazolam online cheap cyclobenzaprine nextel ringtones carisoprodol online nextel ringtones cheap ultram buy valium free sony ringtones fioricet online nexium online ultracet online free ringtones jazz ringtones hoodia online mp3 ringtones xanax online order ultracet tramadol online levitra online free 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_