[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  xTerm support...

xTerm support...

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1  2 3  4  

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #15 on Fri 06 Apr 2007 05:43 AM (UTC)
Message
It's something of a pathological case, though. And the "if you ever do" is a problem; the malicious server -- or rather just an incompetent server -- could prevent you from ever seeing more input if for some reason it failed to properly terminate the sequence. Not to mention that it would eventually (after a veeerrrryyy long time) cause some memory issues.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #16 on Fri 06 Apr 2007 05:45 AM (UTC)
Message
Quote:

They seem to be reinventing MXP there.


That page was updated in 2002, so I wouldn't worry too much.

They seem to be going down the path of allowing font sizes to be set, and imbedding images in the output window.

It seems to me that, like Pueblo, they aren't sure if they are writing a text MUD client or a web browser.

Like I said before, if you were going to make a custom protocol, I would be concentrating on message types, so the client could omit/show/colour each message (like damage received) as it wanted to.

The whole idea of allowing the server to specify actual colours is a bit wrong-headed, IMHO.

Of course, the 256-colour protocol suffers from the same problem. What happens if you want a different 256 colours?

At least MUSHclient lets you map one colour to another, see:

http://www.gammon.com.au/scripts/doc.php?function=MapColour

You could conceivably map each of the 256 colours to something else, with 256 MapColour commands.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #17 on Fri 06 Apr 2007 05:47 AM (UTC)
Message
Quote:

It's something of a pathological case ...


Agreed, and bearing in mind that some server developers don't even both to properly handle '<' symbols even when MXP is active, because zMUD happens to fallback into a mode that displays them, shows that not everyone is really interested in getting things perfect.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #18 on Fri 06 Apr 2007 07:57 AM (UTC)
Message
Quote:

Therefore as soon as you see something that might be a control sequence, you have to start buffering it until you determine either (a) it is in fact a control sequence or (b) it was not a control sequence (i.e. you saw a number you didn't expect).

...

For instance, if I send ESC[38;5;124;48;5;165j (note terminating j) then the program should not set any colors.


What if you send ESC[38;5;124;48;5;257;38;5;126m

Note the 257 in the middle is invalid. Should this invalidate the whole sequence? Or just the particular part that can't be processed? I didn't expect 257, but otherwise it looks OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #19 on Fri 06 Apr 2007 08:00 AM (UTC)
Message
Also, once I see something invalid (like 257 in this case), should I drop back to "display everything" mode? Eg. you would then see on the screen:


38;5;126m


A lot of specs (MXP comes to mind) don't specify exactly how you are to recover if you don't receive what the spec says is "valid".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #20 on Fri 06 Apr 2007 12:05 PM (UTC)
Message
I'm not sure what the correct behavior would be, to be honest. I would guess that the safest thing is to stop parsing the entire sequence as a control sequence.

Specs are nice until they fail to point out certain key elements, as you say...

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] bio
Date Reply #21 on Fri 06 Apr 2007 08:39 PM (UTC)
Message
Quote:
The whole idea of allowing the server to specify actual colours is a bit wrong-headed, IMHO.

Of course, the 256-colour protocol suffers from the same problem. What happens if you want a different 256 colours?


Hmm. No reason why you couldn't allow someone to edit it. I assumed that the '.vim' files where mappings. Looks like they are actually used to set the clients colors, based off the default palette. Presumably, you would normally want to leave the grey scale part and the normal ANSI part at defaults (something Mushclient already violates. lol) This is likely a standard palette. I.e., application that export/import 256 color palettes (.pal files) would use the same format for storing their versions.

Note: There seem to be several versions of .pal, though I assume they differ only in what additional things they added, which may not be recognized in other applications. The two most common are probably the IBM spec (search for "Palette File Format"):

http://www.saettler.com/RIFFMCI/riffmci.html

and the one currently in use with Paintshop Pro, the older versions used the same '.pal' type, but now it uses a '.psppalette' file. No idea what the specs on that are.

Its probably not necessary to add support of something like a % of color scale, since while some high def image files do store colors with scales *significantly* higher than 24-bit, but there isn't a display in existence that actually reproduces that level of granularity (yet anyway). The decision to use % in some things like POVRay came from the fact that they where making it possible to generate data "for" those systems that can print or analyze stuff with like 64-bit color or something. lol Scaling an RGB color which has only half the accuracy to something like that causes you to end up with incorrect colors. This is even more true if you try to scale "down" to 8-bit, then back up to some absurd 64-bit standard or something. It just didn't work real well. It was better to provide the original script source and an accurate color table (to within 6 decimal places). Somehow I don't thing we quite need that. lol

Though, it would be nice if we could have an import capability to add additional colors to the color picker list. At least one Linux/Unix based list of web colors I found included about 4-5 times as many, since it allowed for things like "Light Rose 2", "Light Rose", "Dark Rose 2" and "Dark Rose", instead of just "Rose", or even Light and Dark versions only. I.e., there was a scale of at least 4-5 versions of each color, so you could pick a lighter or darker version of them. Its just a thought.

As for IMP. Noticed after posting that they lacked some clear information on some things (even less clear than MXP), so tried to go on their forums. They are all locked, which is when I realized it was entirely a dead system. Forgot to post that here. But I tend to agree with some people discussing it on TMS when talking about client design. There are seriously screwy things in MXP.

Now, with ANSI.. The most common way to handle bad data, in everything I have ever used that had ANSI support, is to just throw out any codes that are invalid. And, I have *never* seen any instance of anyone using multiple codes in each sequence. Most of the books I ever read on the subject, while never explicit about it, seemed to imply that you have to set foreground and background *independently*. I have no idea if that is in fact the case or not, but I would be surprised if someplace there wasn't something saying so.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #22 on Fri 06 Apr 2007 09:15 PM (UTC)
Message
Quote:
And, I have *never* seen any instance of anyone using multiple codes in each sequence. Most of the books I ever read on the subject, while never explicit about it, seemed to imply that you have to set foreground and background *independently*.
Keep in mind that there are different specs on this. The normal ANSI spec doesn't handle anything beyond the 8 colors (with bright or bold flags). The xterm spec explicitly allows for multiple values.

See:
http://rtfm.etla.org/xterm/ctlseq.html
and search for "CSI Pm m"
Note that "Pm" is defined as:
"A multiple numeric parameter composed of any number of single numeric parameters, separated by ; character(s). Individual values for the parameters are listed with Ps."

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #23 on Fri 06 Apr 2007 09:23 PM (UTC)
Message
Quote:

... and the normal ANSI part at defaults (something Mushclient already violates. lol)


In what way?

Quote:

No reason why you couldn't allow someone to edit it.


I suppose, but remember the idea here is not to render photographs. With a gradual range of 6 * 6 * 6 colours, you should be able to represent almost any colour that the eye can distinguish easily enough, and it would confuse things if a particular server required a different client mapping.

However as I noted, if a particular choice of colours by the server designer annoyed you, you could use the internal colour mapping to replace it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Shaun Biggs   USA  (644 posts)  [Biography] bio
Date Reply #24 on Fri 06 Apr 2007 10:20 PM (UTC)
Message
Quote:
No reason why you couldn't allow someone to edit it. I assumed that the '.vim' files where mappings. Looks like they are actually used to set the clients colors, based off the default palette.

Vim is a text editor which is Vi IMproved. The .vim files are colour schemes for the editor. The screenshot just above all the .vim files is a screenshot of someone using vim to edit some code. It has nothing to do with a mud client whatsoever. These assumptions you make are what gets you into trouble. Please do some research first.

Quote:
Though, it would be nice if we could have an import capability to add additional colors to the color picker list. At least one Linux/Unix based list of web colors I found included about 4-5 times as many, since it allowed for things like "Light Rose 2", "Light Rose", "Dark Rose 2" and "Dark Rose", instead of just "Rose", or even Light and Dark versions only. I.e., there was a scale of at least 4-5 versions of each color, so you could pick a lighter or darker version of them. Its just a thought.

Exactly how many colours can we possibly need in a colour picker? The one that MUSHclient uses has this lovely "Other colour" button which pops up a nice little menu where you can click on the colour you want. Much easier than scanning down an insane list of colour names, which can vary from program to program since there is no real standard for them. Also, if you're worried about scripts or something, an rgb value will take up less space and leave no room for creative interpretation.

As for anything else dealing with colour, keep in mind that the human eye can distinguish roughly 10 million colours, most of which people will only notice if they have two large bands of both colours right next to each other. The only reason to have a number of colours higher than that for anything would be photographs and video, since it allows for smoother transitioning. That is most certainly not needed for text, but very necessary for programs like POVray.

But once again, with MUSHclient being open source now. Feel free to add whatever functionality you want.

It is much easier to fight for one's ideals than to live up to them.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #25 on Fri 06 Apr 2007 11:44 PM (UTC)
Message
Quote:

Exactly how many colours can we possibly need in a colour picker?


I am inclined to agree with Shaun here. It is all very well wanting 500 colours in the picker, but it then gets unwieldy.

It is very easy to choose a colour like "powderblue" and then adjust the RGB sliders to modify the colour slightly, or click "other colour" to open the standard Windows colour picker, and then move the luminance slider, if you want to change the brightness of it.

Again, for a text-based MUD output, you want fairly distinct colours anyway. If a mob is dangerous, it needs to have its name in red, you don't want some subtle colour distinctions where "brown" is a safe mob and "firebrick" (which looks almost identical to me), is unsafe.

In fact, MUSHclient's colour picker shows 140 colours, which is probably a pretty reasonable range.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #26 on Sat 07 Apr 2007 12:15 AM (UTC)
Message
Inverse behaviour?

What behaviour would you expect if the colours are inverted?

eg. given that:


ESC[38;5;9m --> red text
ESC[48;5;10m --> green background
ESC[7m --> inverse


If I get:


ESC[38;5;9m test ESC[48;5;10m


Then I expect to see "test" in red text on green background.

But what about:


ESC[7m ESC[38;5;9m test ESC[48;5;10m


Do I see red on green still? Or is it inverted so it is green on red?



- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #27 on Sat 07 Apr 2007 02:45 AM (UTC)

Amended on Sat 07 Apr 2007 02:48 AM (UTC) by Nick Gammon

Message
Can anyone confirm these are the "official" colours for this new xTerm sequence?


0 (black)                 R=  0 G=  0 B=  0 #000000 &h000000 0x000000 
1 (maroon)                R=128 G=  0 B=  0 #800000 &h000080 0x000080 
2 (green)                 R=  0 G=128 B=  0 #008000 &h008000 0x008000 
3 (olive)                 R=128 G=128 B=  0 #808000 &h008080 0x008080 
4 (navy)                  R=  0 G=  0 B=128 #000080 &h800000 0x800000 
5 (purple)                R=128 G=  0 B=128 #800080 &h800080 0x800080 
6 (teal)                  R=  0 G=128 B=128 #008080 &h808000 0x808000 
7 (silver)                R=192 G=192 B=192 #C0C0C0 &hC0C0C0 0xC0C0C0 
8 (gray)                  R=128 G=128 B=128 #808080 &h808080 0x808080 
9 (red)                   R=255 G=  0 B=  0 #FF0000 &h0000FF 0x0000FF 
10 (lime)                 R=  0 G=255 B=  0 #00FF00 &h00FF00 0x00FF00 
11 (yellow)               R=255 G=255 B=  0 #FFFF00 &h00FFFF 0x00FFFF 
12 (blue)                 R=  0 G=  0 B=255 #0000FF &hFF0000 0xFF0000 
13 (magenta, fuchsia)     R=255 G=  0 B=255 #FF00FF &hFF00FF 0xFF00FF 
14 (cyan, aqua)           R=  0 G=255 B=255 #00FFFF &hFFFF00 0xFFFF00 
15 (white)                R=255 G=255 B=255 #FFFFFF &hFFFFFF 0xFFFFFF 
16 (black)                R=  0 G=  0 B=  0 #000000 &h000000 0x000000 
17                        R=  0 G=  0 B= 95 #00005F &h5F0000 0x5F0000 
18                        R=  0 G=  0 B=135 #000087 &h870000 0x870000 
19                        R=  0 G=  0 B=175 #0000AF &hAF0000 0xAF0000 
20                        R=  0 G=  0 B=223 #0000DF &hDF0000 0xDF0000 
21 (blue)                 R=  0 G=  0 B=255 #0000FF &hFF0000 0xFF0000 
22                        R=  0 G= 95 B=  0 #005F00 &h005F00 0x005F00 
23                        R=  0 G= 95 B= 95 #005F5F &h5F5F00 0x5F5F00 
24                        R=  0 G= 95 B=135 #005F87 &h875F00 0x875F00 
25                        R=  0 G= 95 B=175 #005FAF &hAF5F00 0xAF5F00 
26                        R=  0 G= 95 B=223 #005FDF &hDF5F00 0xDF5F00 
27                        R=  0 G= 95 B=255 #005FFF &hFF5F00 0xFF5F00 
28                        R=  0 G=135 B=  0 #008700 &h008700 0x008700 
29                        R=  0 G=135 B= 95 #00875F &h5F8700 0x5F8700 
30                        R=  0 G=135 B=135 #008787 &h878700 0x878700 
31                        R=  0 G=135 B=175 #0087AF &hAF8700 0xAF8700 
32                        R=  0 G=135 B=223 #0087DF &hDF8700 0xDF8700 
33                        R=  0 G=135 B=255 #0087FF &hFF8700 0xFF8700 
34                        R=  0 G=175 B=  0 #00AF00 &h00AF00 0x00AF00 
35                        R=  0 G=175 B= 95 #00AF5F &h5FAF00 0x5FAF00 
36                        R=  0 G=175 B=135 #00AF87 &h87AF00 0x87AF00 
37                        R=  0 G=175 B=175 #00AFAF &hAFAF00 0xAFAF00 
38                        R=  0 G=175 B=223 #00AFDF &hDFAF00 0xDFAF00 
39                        R=  0 G=175 B=255 #00AFFF &hFFAF00 0xFFAF00 
40                        R=  0 G=223 B=  0 #00DF00 &h00DF00 0x00DF00 
41                        R=  0 G=223 B= 95 #00DF5F &h5FDF00 0x5FDF00 
42                        R=  0 G=223 B=135 #00DF87 &h87DF00 0x87DF00 
43                        R=  0 G=223 B=175 #00DFAF &hAFDF00 0xAFDF00 
44                        R=  0 G=223 B=223 #00DFDF &hDFDF00 0xDFDF00 
45                        R=  0 G=223 B=255 #00DFFF &hFFDF00 0xFFDF00 
46 (lime)                 R=  0 G=255 B=  0 #00FF00 &h00FF00 0x00FF00 
47                        R=  0 G=255 B= 95 #00FF5F &h5FFF00 0x5FFF00 
48                        R=  0 G=255 B=135 #00FF87 &h87FF00 0x87FF00 
49                        R=  0 G=255 B=175 #00FFAF &hAFFF00 0xAFFF00 
50                        R=  0 G=255 B=223 #00FFDF &hDFFF00 0xDFFF00 
51 (cyan, aqua)           R=  0 G=255 B=255 #00FFFF &hFFFF00 0xFFFF00 
52                        R= 95 G=  0 B=  0 #5F0000 &h00005F 0x00005F 
53                        R= 95 G=  0 B= 95 #5F005F &h5F005F 0x5F005F 
54                        R= 95 G=  0 B=135 #5F0087 &h87005F 0x87005F 
55                        R= 95 G=  0 B=175 #5F00AF &hAF005F 0xAF005F 
56                        R= 95 G=  0 B=223 #5F00DF &hDF005F 0xDF005F 
57                        R= 95 G=  0 B=255 #5F00FF &hFF005F 0xFF005F 
58                        R= 95 G= 95 B=  0 #5F5F00 &h005F5F 0x005F5F 
59                        R= 95 G= 95 B= 95 #5F5F5F &h5F5F5F 0x5F5F5F 
60                        R= 95 G= 95 B=135 #5F5F87 &h875F5F 0x875F5F 
61                        R= 95 G= 95 B=175 #5F5FAF &hAF5F5F 0xAF5F5F 
62                        R= 95 G= 95 B=223 #5F5FDF &hDF5F5F 0xDF5F5F 
63                        R= 95 G= 95 B=255 #5F5FFF &hFF5F5F 0xFF5F5F 
64                        R= 95 G=135 B=  0 #5F8700 &h00875F 0x00875F 
65                        R= 95 G=135 B= 95 #5F875F &h5F875F 0x5F875F 
66                        R= 95 G=135 B=135 #5F8787 &h87875F 0x87875F 
67                        R= 95 G=135 B=175 #5F87AF &hAF875F 0xAF875F 
68                        R= 95 G=135 B=223 #5F87DF &hDF875F 0xDF875F 
69                        R= 95 G=135 B=255 #5F87FF &hFF875F 0xFF875F 
70                        R= 95 G=175 B=  0 #5FAF00 &h00AF5F 0x00AF5F 
71                        R= 95 G=175 B= 95 #5FAF5F &h5FAF5F 0x5FAF5F 
72                        R= 95 G=175 B=135 #5FAF87 &h87AF5F 0x87AF5F 
73                        R= 95 G=175 B=175 #5FAFAF &hAFAF5F 0xAFAF5F 
74                        R= 95 G=175 B=223 #5FAFDF &hDFAF5F 0xDFAF5F 
75                        R= 95 G=175 B=255 #5FAFFF &hFFAF5F 0xFFAF5F 
76                        R= 95 G=223 B=  0 #5FDF00 &h00DF5F 0x00DF5F 
77                        R= 95 G=223 B= 95 #5FDF5F &h5FDF5F 0x5FDF5F 
78                        R= 95 G=223 B=135 #5FDF87 &h87DF5F 0x87DF5F 
79                        R= 95 G=223 B=175 #5FDFAF &hAFDF5F 0xAFDF5F 
80                        R= 95 G=223 B=223 #5FDFDF &hDFDF5F 0xDFDF5F 
81                        R= 95 G=223 B=255 #5FDFFF &hFFDF5F 0xFFDF5F 
82                        R= 95 G=255 B=  0 #5FFF00 &h00FF5F 0x00FF5F 
83                        R= 95 G=255 B= 95 #5FFF5F &h5FFF5F 0x5FFF5F 
84                        R= 95 G=255 B=135 #5FFF87 &h87FF5F 0x87FF5F 
85                        R= 95 G=255 B=175 #5FFFAF &hAFFF5F 0xAFFF5F 
86                        R= 95 G=255 B=223 #5FFFDF &hDFFF5F 0xDFFF5F 
87                        R= 95 G=255 B=255 #5FFFFF &hFFFF5F 0xFFFF5F 
88                        R=135 G=  0 B=  0 #870000 &h000087 0x000087 
89                        R=135 G=  0 B= 95 #87005F &h5F0087 0x5F0087 
90                        R=135 G=  0 B=135 #870087 &h870087 0x870087 
91                        R=135 G=  0 B=175 #8700AF &hAF0087 0xAF0087 
92                        R=135 G=  0 B=223 #8700DF &hDF0087 0xDF0087 
93                        R=135 G=  0 B=255 #8700FF &hFF0087 0xFF0087 
94                        R=135 G= 95 B=  0 #875F00 &h005F87 0x005F87 
95                        R=135 G= 95 B= 95 #875F5F &h5F5F87 0x5F5F87 
96                        R=135 G= 95 B=135 #875F87 &h875F87 0x875F87 
97                        R=135 G= 95 B=175 #875FAF &hAF5F87 0xAF5F87 
98                        R=135 G= 95 B=223 #875FDF &hDF5F87 0xDF5F87 
99                        R=135 G= 95 B=255 #875FFF &hFF5F87 0xFF5F87 
100                       R=135 G=135 B=  0 #878700 &h008787 0x008787 
101                       R=135 G=135 B= 95 #87875F &h5F8787 0x5F8787 
102                       R=135 G=135 B=135 #878787 &h878787 0x878787 
103                       R=135 G=135 B=175 #8787AF &hAF8787 0xAF8787 
104                       R=135 G=135 B=223 #8787DF &hDF8787 0xDF8787 
105                       R=135 G=135 B=255 #8787FF &hFF8787 0xFF8787 
106                       R=135 G=175 B=  0 #87AF00 &h00AF87 0x00AF87 
107                       R=135 G=175 B= 95 #87AF5F &h5FAF87 0x5FAF87 
108                       R=135 G=175 B=135 #87AF87 &h87AF87 0x87AF87 
109                       R=135 G=175 B=175 #87AFAF &hAFAF87 0xAFAF87 
110                       R=135 G=175 B=223 #87AFDF &hDFAF87 0xDFAF87 
111                       R=135 G=175 B=255 #87AFFF &hFFAF87 0xFFAF87 
112                       R=135 G=223 B=  0 #87DF00 &h00DF87 0x00DF87 
113                       R=135 G=223 B= 95 #87DF5F &h5FDF87 0x5FDF87 
114                       R=135 G=223 B=135 #87DF87 &h87DF87 0x87DF87 
115                       R=135 G=223 B=175 #87DFAF &hAFDF87 0xAFDF87 
116                       R=135 G=223 B=223 #87DFDF &hDFDF87 0xDFDF87 
117                       R=135 G=223 B=255 #87DFFF &hFFDF87 0xFFDF87 
118                       R=135 G=255 B=  0 #87FF00 &h00FF87 0x00FF87 
119                       R=135 G=255 B= 95 #87FF5F &h5FFF87 0x5FFF87 
120                       R=135 G=255 B=135 #87FF87 &h87FF87 0x87FF87 
121                       R=135 G=255 B=175 #87FFAF &hAFFF87 0xAFFF87 
122                       R=135 G=255 B=223 #87FFDF &hDFFF87 0xDFFF87 
123                       R=135 G=255 B=255 #87FFFF &hFFFF87 0xFFFF87 
124                       R=175 G=  0 B=  0 #AF0000 &h0000AF 0x0000AF 
125                       R=175 G=  0 B= 95 #AF005F &h5F00AF 0x5F00AF 
126                       R=175 G=  0 B=135 #AF0087 &h8700AF 0x8700AF 
127                       R=175 G=  0 B=175 #AF00AF &hAF00AF 0xAF00AF 
128                       R=175 G=  0 B=223 #AF00DF &hDF00AF 0xDF00AF 
129                       R=175 G=  0 B=255 #AF00FF &hFF00AF 0xFF00AF 
130                       R=175 G= 95 B=  0 #AF5F00 &h005FAF 0x005FAF 
131                       R=175 G= 95 B= 95 #AF5F5F &h5F5FAF 0x5F5FAF 
132                       R=175 G= 95 B=135 #AF5F87 &h875FAF 0x875FAF 
133                       R=175 G= 95 B=175 #AF5FAF &hAF5FAF 0xAF5FAF 
134                       R=175 G= 95 B=223 #AF5FDF &hDF5FAF 0xDF5FAF 
135                       R=175 G= 95 B=255 #AF5FFF &hFF5FAF 0xFF5FAF 
136                       R=175 G=135 B=  0 #AF8700 &h0087AF 0x0087AF 
137                       R=175 G=135 B= 95 #AF875F &h5F87AF 0x5F87AF 
138                       R=175 G=135 B=135 #AF8787 &h8787AF 0x8787AF 
139                       R=175 G=135 B=175 #AF87AF &hAF87AF 0xAF87AF 
140                       R=175 G=135 B=223 #AF87DF &hDF87AF 0xDF87AF 
141                       R=175 G=135 B=255 #AF87FF &hFF87AF 0xFF87AF 
142                       R=175 G=175 B=  0 #AFAF00 &h00AFAF 0x00AFAF 
143                       R=175 G=175 B= 95 #AFAF5F &h5FAFAF 0x5FAFAF 
144                       R=175 G=175 B=135 #AFAF87 &h87AFAF 0x87AFAF 
145                       R=175 G=175 B=175 #AFAFAF &hAFAFAF 0xAFAFAF 
146                       R=175 G=175 B=223 #AFAFDF &hDFAFAF 0xDFAFAF 
147                       R=175 G=175 B=255 #AFAFFF &hFFAFAF 0xFFAFAF 
148                       R=175 G=223 B=  0 #AFDF00 &h00DFAF 0x00DFAF 
149                       R=175 G=223 B= 95 #AFDF5F &h5FDFAF 0x5FDFAF 
150                       R=175 G=223 B=135 #AFDF87 &h87DFAF 0x87DFAF 
151                       R=175 G=223 B=175 #AFDFAF &hAFDFAF 0xAFDFAF 
152                       R=175 G=223 B=223 #AFDFDF &hDFDFAF 0xDFDFAF 
153                       R=175 G=223 B=255 #AFDFFF &hFFDFAF 0xFFDFAF 
154                       R=175 G=255 B=  0 #AFFF00 &h00FFAF 0x00FFAF 
155                       R=175 G=255 B= 95 #AFFF5F &h5FFFAF 0x5FFFAF 
156                       R=175 G=255 B=135 #AFFF87 &h87FFAF 0x87FFAF 
157                       R=175 G=255 B=175 #AFFFAF &hAFFFAF 0xAFFFAF 
158                       R=175 G=255 B=223 #AFFFDF &hDFFFAF 0xDFFFAF 
159                       R=175 G=255 B=255 #AFFFFF &hFFFFAF 0xFFFFAF 
160                       R=223 G=  0 B=  0 #DF0000 &h0000DF 0x0000DF 
161                       R=223 G=  0 B= 95 #DF005F &h5F00DF 0x5F00DF 
162                       R=223 G=  0 B=135 #DF0087 &h8700DF 0x8700DF 
163                       R=223 G=  0 B=175 #DF00AF &hAF00DF 0xAF00DF 
164                       R=223 G=  0 B=223 #DF00DF &hDF00DF 0xDF00DF 
165                       R=223 G=  0 B=255 #DF00FF &hFF00DF 0xFF00DF 
166                       R=223 G= 95 B=  0 #DF5F00 &h005FDF 0x005FDF 
167                       R=223 G= 95 B= 95 #DF5F5F &h5F5FDF 0x5F5FDF 
168                       R=223 G= 95 B=135 #DF5F87 &h875FDF 0x875FDF 
169                       R=223 G= 95 B=175 #DF5FAF &hAF5FDF 0xAF5FDF 
170                       R=223 G= 95 B=223 #DF5FDF &hDF5FDF 0xDF5FDF 
171                       R=223 G= 95 B=255 #DF5FFF &hFF5FDF 0xFF5FDF 
172                       R=223 G=135 B=  0 #DF8700 &h0087DF 0x0087DF 
173                       R=223 G=135 B= 95 #DF875F &h5F87DF 0x5F87DF 
174                       R=223 G=135 B=135 #DF8787 &h8787DF 0x8787DF 
175                       R=223 G=135 B=175 #DF87AF &hAF87DF 0xAF87DF 
176                       R=223 G=135 B=223 #DF87DF &hDF87DF 0xDF87DF 
177                       R=223 G=135 B=255 #DF87FF &hFF87DF 0xFF87DF 
178                       R=223 G=175 B=  0 #DFAF00 &h00AFDF 0x00AFDF 
179                       R=223 G=175 B= 95 #DFAF5F &h5FAFDF 0x5FAFDF 
180                       R=223 G=175 B=135 #DFAF87 &h87AFDF 0x87AFDF 
181                       R=223 G=175 B=175 #DFAFAF &hAFAFDF 0xAFAFDF 
182                       R=223 G=175 B=223 #DFAFDF &hDFAFDF 0xDFAFDF 
183                       R=223 G=175 B=255 #DFAFFF &hFFAFDF 0xFFAFDF 
184                       R=223 G=223 B=  0 #DFDF00 &h00DFDF 0x00DFDF 
185                       R=223 G=223 B= 95 #DFDF5F &h5FDFDF 0x5FDFDF 
186                       R=223 G=223 B=135 #DFDF87 &h87DFDF 0x87DFDF 
187                       R=223 G=223 B=175 #DFDFAF &hAFDFDF 0xAFDFDF 
188                       R=223 G=223 B=223 #DFDFDF &hDFDFDF 0xDFDFDF 
189                       R=223 G=223 B=255 #DFDFFF &hFFDFDF 0xFFDFDF 
190                       R=223 G=255 B=  0 #DFFF00 &h00FFDF 0x00FFDF 
191                       R=223 G=255 B= 95 #DFFF5F &h5FFFDF 0x5FFFDF 
192                       R=223 G=255 B=135 #DFFF87 &h87FFDF 0x87FFDF 
193                       R=223 G=255 B=175 #DFFFAF &hAFFFDF 0xAFFFDF 
194                       R=223 G=255 B=223 #DFFFDF &hDFFFDF 0xDFFFDF 
195                       R=223 G=255 B=255 #DFFFFF &hFFFFDF 0xFFFFDF 
196 (red)                 R=255 G=  0 B=  0 #FF0000 &h0000FF 0x0000FF 
197                       R=255 G=  0 B= 95 #FF005F &h5F00FF 0x5F00FF 
198                       R=255 G=  0 B=135 #FF0087 &h8700FF 0x8700FF 
199                       R=255 G=  0 B=175 #FF00AF &hAF00FF 0xAF00FF 
200                       R=255 G=  0 B=223 #FF00DF &hDF00FF 0xDF00FF 
201 (magenta, fuchsia)    R=255 G=  0 B=255 #FF00FF &hFF00FF 0xFF00FF 
202                       R=255 G= 95 B=  0 #FF5F00 &h005FFF 0x005FFF 
203                       R=255 G= 95 B= 95 #FF5F5F &h5F5FFF 0x5F5FFF 
204                       R=255 G= 95 B=135 #FF5F87 &h875FFF 0x875FFF 
205                       R=255 G= 95 B=175 #FF5FAF &hAF5FFF 0xAF5FFF 
206                       R=255 G= 95 B=223 #FF5FDF &hDF5FFF 0xDF5FFF 
207                       R=255 G= 95 B=255 #FF5FFF &hFF5FFF 0xFF5FFF 
208                       R=255 G=135 B=  0 #FF8700 &h0087FF 0x0087FF 
209                       R=255 G=135 B= 95 #FF875F &h5F87FF 0x5F87FF 
210                       R=255 G=135 B=135 #FF8787 &h8787FF 0x8787FF 
211                       R=255 G=135 B=175 #FF87AF &hAF87FF 0xAF87FF 
212                       R=255 G=135 B=223 #FF87DF &hDF87FF 0xDF87FF 
213                       R=255 G=135 B=255 #FF87FF &hFF87FF 0xFF87FF 
214                       R=255 G=175 B=  0 #FFAF00 &h00AFFF 0x00AFFF 
215                       R=255 G=175 B= 95 #FFAF5F &h5FAFFF 0x5FAFFF 
216                       R=255 G=175 B=135 #FFAF87 &h87AFFF 0x87AFFF 
217                       R=255 G=175 B=175 #FFAFAF &hAFAFFF 0xAFAFFF 
218                       R=255 G=175 B=223 #FFAFDF &hDFAFFF 0xDFAFFF 
219                       R=255 G=175 B=255 #FFAFFF &hFFAFFF 0xFFAFFF 
220                       R=255 G=223 B=  0 #FFDF00 &h00DFFF 0x00DFFF 
221                       R=255 G=223 B= 95 #FFDF5F &h5FDFFF 0x5FDFFF 
222                       R=255 G=223 B=135 #FFDF87 &h87DFFF 0x87DFFF 
223                       R=255 G=223 B=175 #FFDFAF &hAFDFFF 0xAFDFFF 
224                       R=255 G=223 B=223 #FFDFDF &hDFDFFF 0xDFDFFF 
225                       R=255 G=223 B=255 #FFDFFF &hFFDFFF 0xFFDFFF 
226 (yellow)              R=255 G=255 B=  0 #FFFF00 &h00FFFF 0x00FFFF 
227                       R=255 G=255 B= 95 #FFFF5F &h5FFFFF 0x5FFFFF 
228                       R=255 G=255 B=135 #FFFF87 &h87FFFF 0x87FFFF 
229                       R=255 G=255 B=175 #FFFFAF &hAFFFFF 0xAFFFFF 
230                       R=255 G=255 B=223 #FFFFDF &hDFFFFF 0xDFFFFF 
231 (white)               R=255 G=255 B=255 #FFFFFF &hFFFFFF 0xFFFFFF 
232                       R=  8 G=  8 B=  8 #080808 &h080808 0x080808 
233                       R= 18 G= 18 B= 18 #121212 &h121212 0x121212 
234                       R= 28 G= 28 B= 28 #1C1C1C &h1C1C1C 0x1C1C1C 
235                       R= 38 G= 38 B= 38 #262626 &h262626 0x262626 
236                       R= 48 G= 48 B= 48 #303030 &h303030 0x303030 
237                       R= 58 G= 58 B= 58 #3A3A3A &h3A3A3A 0x3A3A3A 
238                       R= 68 G= 68 B= 68 #444444 &h444444 0x444444 
239                       R= 78 G= 78 B= 78 #4E4E4E &h4E4E4E 0x4E4E4E 
240                       R= 88 G= 88 B= 88 #585858 &h585858 0x585858 
241                       R= 98 G= 98 B= 98 #626262 &h626262 0x626262 
242                       R=108 G=108 B=108 #6C6C6C &h6C6C6C 0x6C6C6C 
243                       R=118 G=118 B=118 #767676 &h767676 0x767676 
244 (gray)                R=128 G=128 B=128 #808080 &h808080 0x808080 
245                       R=138 G=138 B=138 #8A8A8A &h8A8A8A 0x8A8A8A 
246                       R=148 G=148 B=148 #949494 &h949494 0x949494 
247                       R=158 G=158 B=158 #9E9E9E &h9E9E9E 0x9E9E9E 
248                       R=168 G=168 B=168 #A8A8A8 &hA8A8A8 0xA8A8A8 
249                       R=178 G=178 B=178 #B2B2B2 &hB2B2B2 0xB2B2B2 
250                       R=188 G=188 B=188 #BCBCBC &hBCBCBC 0xBCBCBC 
251                       R=198 G=198 B=198 #C6C6C6 &hC6C6C6 0xC6C6C6 
252                       R=208 G=208 B=208 #D0D0D0 &hD0D0D0 0xD0D0D0 
253                       R=218 G=218 B=218 #DADADA &hDADADA 0xDADADA 
254                       R=228 G=228 B=228 #E4E4E4 &hE4E4E4 0xE4E4E4 
255                       R=238 G=238 B=238 #EEEEEE &hEEEEEE 0xEEEEEE 


I am assuming the first 16 are OK, as they are identical to the standard 16-colour ANSI values. Also the grey scale ones (232 onwards) seem reasonable as they go up in a standard way.

I am not sure about the 6 * 6 * 6 colour cube. This is the algorithm I am using:


  int red, green, blue;
  const BYTE values [6] = { 0x00, 0x5F, 0x87, 0xAF, 0xDF, 0xFF };

  for (red = 0; red < 6; red++)
    for (green = 0; green < 6; green++)
      for (blue = 0; blue < 6; blue++)
         xterm_256_colours [16 + (red * 36) + (blue * 6) + green] =
            RGB (values [red], values [blue], values [green]);


  int grey;
  for (grey = 0; grey < 24; grey++)
    {
    BYTE value = 8 + (grey * 10);
    xterm_256_colours [232 + grey] = RGB (value, value, value);
    }


The thing that concerns me here is that the gaps in the colour cube (ie. the "values" table) are not evenly spaced.

However they give a result that is consistent with the only web page I found so far that actually listed RGB values. That is:

http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html

Is this correct? Or just someone's personal preference?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #28 on Sat 07 Apr 2007 02:55 AM (UTC)

Amended on Sat 07 Apr 2007 02:57 AM (UTC) by Nick Gammon

Message
Another site I came across seems to suggest that the colours *should* be evenly spaced in the colour cube, by an amount of 42.5 (ie. 256 / 6) rather than the spacing given on the page above.

The spacing in the current algorithm is:

95 + 40 + 40 + 48 + 32 = 255


An alternate algorithm, based on the 42.5 gap, would be:


  for (red = 0; red < 6; red++)
      for (green = 0; green < 6; green++)
        for (blue = 0; blue < 6; blue++)
           xterm_256_colours [16 + (red * 36) + (blue * 6) + green] =
              RGB (red * 42.5, blue * 42.5, green * 42.5);


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #29 on Sat 07 Apr 2007 03:00 AM (UTC)

Amended on Sat 07 Apr 2007 03:01 AM (UTC) by Nick Gammon

Message
Using that second approach gave these results, which look a bit darker:


16 (black)                R=  0 G=  0 B=  0 #000000 &h000000 0x000000 
17                        R=  0 G=  0 B= 42 #00002A &h2A0000 0x2A0000 
18                        R=  0 G=  0 B= 85 #000055 &h550000 0x550000 
19                        R=  0 G=  0 B=127 #00007F &h7F0000 0x7F0000 
20                        R=  0 G=  0 B=170 #0000AA &hAA0000 0xAA0000 
21                        R=  0 G=  0 B=212 #0000D4 &hD40000 0xD40000 
22                        R=  0 G= 42 B=  0 #002A00 &h002A00 0x002A00 
23                        R=  0 G= 42 B= 42 #002A2A &h2A2A00 0x2A2A00 
24                        R=  0 G= 42 B= 85 #002A55 &h552A00 0x552A00 
25                        R=  0 G= 42 B=127 #002A7F &h7F2A00 0x7F2A00 
26                        R=  0 G= 42 B=170 #002AAA &hAA2A00 0xAA2A00 
27                        R=  0 G= 42 B=212 #002AD4 &hD42A00 0xD42A00 
28                        R=  0 G= 85 B=  0 #005500 &h005500 0x005500 
29                        R=  0 G= 85 B= 42 #00552A &h2A5500 0x2A5500 
30                        R=  0 G= 85 B= 85 #005555 &h555500 0x555500 
31                        R=  0 G= 85 B=127 #00557F &h7F5500 0x7F5500 
32                        R=  0 G= 85 B=170 #0055AA &hAA5500 0xAA5500 
33                        R=  0 G= 85 B=212 #0055D4 &hD45500 0xD45500 
34                        R=  0 G=127 B=  0 #007F00 &h007F00 0x007F00 
35                        R=  0 G=127 B= 42 #007F2A &h2A7F00 0x2A7F00 
36                        R=  0 G=127 B= 85 #007F55 &h557F00 0x557F00 
37                        R=  0 G=127 B=127 #007F7F &h7F7F00 0x7F7F00 
38                        R=  0 G=127 B=170 #007FAA &hAA7F00 0xAA7F00 
39                        R=  0 G=127 B=212 #007FD4 &hD47F00 0xD47F00 
40                        R=  0 G=170 B=  0 #00AA00 &h00AA00 0x00AA00 
41                        R=  0 G=170 B= 42 #00AA2A &h2AAA00 0x2AAA00 
42                        R=  0 G=170 B= 85 #00AA55 &h55AA00 0x55AA00 
43                        R=  0 G=170 B=127 #00AA7F &h7FAA00 0x7FAA00 
44                        R=  0 G=170 B=170 #00AAAA &hAAAA00 0xAAAA00 
45                        R=  0 G=170 B=212 #00AAD4 &hD4AA00 0xD4AA00 
46                        R=  0 G=212 B=  0 #00D400 &h00D400 0x00D400 
47                        R=  0 G=212 B= 42 #00D42A &h2AD400 0x2AD400 
48                        R=  0 G=212 B= 85 #00D455 &h55D400 0x55D400 
49                        R=  0 G=212 B=127 #00D47F &h7FD400 0x7FD400 
50                        R=  0 G=212 B=170 #00D4AA &hAAD400 0xAAD400 
51                        R=  0 G=212 B=212 #00D4D4 &hD4D400 0xD4D400 
52                        R= 42 G=  0 B=  0 #2A0000 &h00002A 0x00002A 
53                        R= 42 G=  0 B= 42 #2A002A &h2A002A 0x2A002A 
54                        R= 42 G=  0 B= 85 #2A0055 &h55002A 0x55002A 
55                        R= 42 G=  0 B=127 #2A007F &h7F002A 0x7F002A 
56                        R= 42 G=  0 B=170 #2A00AA &hAA002A 0xAA002A 
57                        R= 42 G=  0 B=212 #2A00D4 &hD4002A 0xD4002A 
58                        R= 42 G= 42 B=  0 #2A2A00 &h002A2A 0x002A2A 
59                        R= 42 G= 42 B= 42 #2A2A2A &h2A2A2A 0x2A2A2A 
60                        R= 42 G= 42 B= 85 #2A2A55 &h552A2A 0x552A2A 
61                        R= 42 G= 42 B=127 #2A2A7F &h7F2A2A 0x7F2A2A 
62                        R= 42 G= 42 B=170 #2A2AAA &hAA2A2A 0xAA2A2A 
63                        R= 42 G= 42 B=212 #2A2AD4 &hD42A2A 0xD42A2A 
64                        R= 42 G= 85 B=  0 #2A5500 &h00552A 0x00552A 
65                        R= 42 G= 85 B= 42 #2A552A &h2A552A 0x2A552A 
66                        R= 42 G= 85 B= 85 #2A5555 &h55552A 0x55552A 
67                        R= 42 G= 85 B=127 #2A557F &h7F552A 0x7F552A 
68                        R= 42 G= 85 B=170 #2A55AA &hAA552A 0xAA552A 
69                        R= 42 G= 85 B=212 #2A55D4 &hD4552A 0xD4552A 
70                        R= 42 G=127 B=  0 #2A7F00 &h007F2A 0x007F2A 
71                        R= 42 G=127 B= 42 #2A7F2A &h2A7F2A 0x2A7F2A 
72                        R= 42 G=127 B= 85 #2A7F55 &h557F2A 0x557F2A 
73                        R= 42 G=127 B=127 #2A7F7F &h7F7F2A 0x7F7F2A 
74                        R= 42 G=127 B=170 #2A7FAA &hAA7F2A 0xAA7F2A 
75                        R= 42 G=127 B=212 #2A7FD4 &hD47F2A 0xD47F2A 
76                        R= 42 G=170 B=  0 #2AAA00 &h00AA2A 0x00AA2A 
77                        R= 42 G=170 B= 42 #2AAA2A &h2AAA2A 0x2AAA2A 
78                        R= 42 G=170 B= 85 #2AAA55 &h55AA2A 0x55AA2A 
79                        R= 42 G=170 B=127 #2AAA7F &h7FAA2A 0x7FAA2A 
80                        R= 42 G=170 B=170 #2AAAAA &hAAAA2A 0xAAAA2A 
81                        R= 42 G=170 B=212 #2AAAD4 &hD4AA2A 0xD4AA2A 
82                        R= 42 G=212 B=  0 #2AD400 &h00D42A 0x00D42A 
83                        R= 42 G=212 B= 42 #2AD42A &h2AD42A 0x2AD42A 
84                        R= 42 G=212 B= 85 #2AD455 &h55D42A 0x55D42A 
85                        R= 42 G=212 B=127 #2AD47F &h7FD42A 0x7FD42A 
86                        R= 42 G=212 B=170 #2AD4AA &hAAD42A 0xAAD42A 
87                        R= 42 G=212 B=212 #2AD4D4 &hD4D42A 0xD4D42A 
88                        R= 85 G=  0 B=  0 #550000 &h000055 0x000055 
89                        R= 85 G=  0 B= 42 #55002A &h2A0055 0x2A0055 
90                        R= 85 G=  0 B= 85 #550055 &h550055 0x550055 
91                        R= 85 G=  0 B=127 #55007F &h7F0055 0x7F0055 
92                        R= 85 G=  0 B=170 #5500AA &hAA0055 0xAA0055 
93                        R= 85 G=  0 B=212 #5500D4 &hD40055 0xD40055 
94                        R= 85 G= 42 B=  0 #552A00 &h002A55 0x002A55 
95                        R= 85 G= 42 B= 42 #552A2A &h2A2A55 0x2A2A55 
96                        R= 85 G= 42 B= 85 #552A55 &h552A55 0x552A55 
97                        R= 85 G= 42 B=127 #552A7F &h7F2A55 0x7F2A55 
98                        R= 85 G= 42 B=170 #552AAA &hAA2A55 0xAA2A55 
99                        R= 85 G= 42 B=212 #552AD4 &hD42A55 0xD42A55 
100                       R= 85 G= 85 B=  0 #555500 &h005555 0x005555 
101                       R= 85 G= 85 B= 42 #55552A &h2A5555 0x2A5555 
102                       R= 85 G= 85 B= 85 #555555 &h555555 0x555555 
103                       R= 85 G= 85 B=127 #55557F &h7F5555 0x7F5555 
104                       R= 85 G= 85 B=170 #5555AA &hAA5555 0xAA5555 
105                       R= 85 G= 85 B=212 #5555D4 &hD45555 0xD45555 
106                       R= 85 G=127 B=  0 #557F00 &h007F55 0x007F55 
107                       R= 85 G=127 B= 42 #557F2A &h2A7F55 0x2A7F55 
108                       R= 85 G=127 B= 85 #557F55 &h557F55 0x557F55 
109                       R= 85 G=127 B=127 #557F7F &h7F7F55 0x7F7F55 
110                       R= 85 G=127 B=170 #557FAA &hAA7F55 0xAA7F55 
111                       R= 85 G=127 B=212 #557FD4 &hD47F55 0xD47F55 
112                       R= 85 G=170 B=  0 #55AA00 &h00AA55 0x00AA55 
113                       R= 85 G=170 B= 42 #55AA2A &h2AAA55 0x2AAA55 
114                       R= 85 G=170 B= 85 #55AA55 &h55AA55 0x55AA55 
115                       R= 85 G=170 B=127 #55AA7F &h7FAA55 0x7FAA55 
116                       R= 85 G=170 B=170 #55AAAA &hAAAA55 0xAAAA55 
117                       R= 85 G=170 B=212 #55AAD4 &hD4AA55 0xD4AA55 
118                       R= 85 G=212 B=  0 #55D400 &h00D455 0x00D455 
119                       R= 85 G=212 B= 42 #55D42A &h2AD455 0x2AD455 
120                       R= 85 G=212 B= 85 #55D455 &h55D455 0x55D455 
121                       R= 85 G=212 B=127 #55D47F &h7FD455 0x7FD455 
122                       R= 85 G=212 B=170 #55D4AA &hAAD455 0xAAD455 
123                       R= 85 G=212 B=212 #55D4D4 &hD4D455 0xD4D455 
124                       R=127 G=  0 B=  0 #7F0000 &h00007F 0x00007F 
125                       R=127 G=  0 B= 42 #7F002A &h2A007F 0x2A007F 
126                       R=127 G=  0 B= 85 #7F0055 &h55007F 0x55007F 
127                       R=127 G=  0 B=127 #7F007F &h7F007F 0x7F007F 
128                       R=127 G=  0 B=170 #7F00AA &hAA007F 0xAA007F 
129                       R=127 G=  0 B=212 #7F00D4 &hD4007F 0xD4007F 
130                       R=127 G= 42 B=  0 #7F2A00 &h002A7F 0x002A7F 
131                       R=127 G= 42 B= 42 #7F2A2A &h2A2A7F 0x2A2A7F 
132                       R=127 G= 42 B= 85 #7F2A55 &h552A7F 0x552A7F 
133                       R=127 G= 42 B=127 #7F2A7F &h7F2A7F 0x7F2A7F 
134                       R=127 G= 42 B=170 #7F2AAA &hAA2A7F 0xAA2A7F 
135                       R=127 G= 42 B=212 #7F2AD4 &hD42A7F 0xD42A7F 
136                       R=127 G= 85 B=  0 #7F5500 &h00557F 0x00557F 
137                       R=127 G= 85 B= 42 #7F552A &h2A557F 0x2A557F 
138                       R=127 G= 85 B= 85 #7F5555 &h55557F 0x55557F 
139                       R=127 G= 85 B=127 #7F557F &h7F557F 0x7F557F 
140                       R=127 G= 85 B=170 #7F55AA &hAA557F 0xAA557F 
141                       R=127 G= 85 B=212 #7F55D4 &hD4557F 0xD4557F 
142                       R=127 G=127 B=  0 #7F7F00 &h007F7F 0x007F7F 
143                       R=127 G=127 B= 42 #7F7F2A &h2A7F7F 0x2A7F7F 
144                       R=127 G=127 B= 85 #7F7F55 &h557F7F 0x557F7F 
145                       R=127 G=127 B=127 #7F7F7F &h7F7F7F 0x7F7F7F 
146                       R=127 G=127 B=170 #7F7FAA &hAA7F7F 0xAA7F7F 
147                       R=127 G=127 B=212 #7F7FD4 &hD47F7F 0xD47F7F 
148                       R=127 G=170 B=  0 #7FAA00 &h00AA7F 0x00AA7F 
149                       R=127 G=170 B= 42 #7FAA2A &h2AAA7F 0x2AAA7F 
150                       R=127 G=170 B= 85 #7FAA55 &h55AA7F 0x55AA7F 
151                       R=127 G=170 B=127 #7FAA7F &h7FAA7F 0x7FAA7F 
152                       R=127 G=170 B=170 #7FAAAA &hAAAA7F 0xAAAA7F 
153                       R=127 G=170 B=212 #7FAAD4 &hD4AA7F 0xD4AA7F 
154                       R=127 G=212 B=  0 #7FD400 &h00D47F 0x00D47F 
155                       R=127 G=212 B= 42 #7FD42A &h2AD47F 0x2AD47F 
156                       R=127 G=212 B= 85 #7FD455 &h55D47F 0x55D47F 
157                       R=127 G=212 B=127 #7FD47F &h7FD47F 0x7FD47F 
158                       R=127 G=212 B=170 #7FD4AA &hAAD47F 0xAAD47F 
159                       R=127 G=212 B=212 #7FD4D4 &hD4D47F 0xD4D47F 
160                       R=170 G=  0 B=  0 #AA0000 &h0000AA 0x0000AA 
161                       R=170 G=  0 B= 42 #AA002A &h2A00AA 0x2A00AA 
162                       R=170 G=  0 B= 85 #AA0055 &h5500AA 0x5500AA 
163                       R=170 G=  0 B=127 #AA007F &h7F00AA 0x7F00AA 
164                       R=170 G=  0 B=170 #AA00AA &hAA00AA 0xAA00AA 
165                       R=170 G=  0 B=212 #AA00D4 &hD400AA 0xD400AA 
166                       R=170 G= 42 B=  0 #AA2A00 &h002AAA 0x002AAA 
167                       R=170 G= 42 B= 42 #AA2A2A &h2A2AAA 0x2A2AAA 
168                       R=170 G= 42 B= 85 #AA2A55 &h552AAA 0x552AAA 
169                       R=170 G= 42 B=127 #AA2A7F &h7F2AAA 0x7F2AAA 
170                       R=170 G= 42 B=170 #AA2AAA &hAA2AAA 0xAA2AAA 
171                       R=170 G= 42 B=212 #AA2AD4 &hD42AAA 0xD42AAA 
172                       R=170 G= 85 B=  0 #AA5500 &h0055AA 0x0055AA 
173                       R=170 G= 85 B= 42 #AA552A &h2A55AA 0x2A55AA 
174                       R=170 G= 85 B= 85 #AA5555 &h5555AA 0x5555AA 
175                       R=170 G= 85 B=127 #AA557F &h7F55AA 0x7F55AA 
176                       R=170 G= 85 B=170 #AA55AA &hAA55AA 0xAA55AA 
177                       R=170 G= 85 B=212 #AA55D4 &hD455AA 0xD455AA 
178                       R=170 G=127 B=  0 #AA7F00 &h007FAA 0x007FAA 
179                       R=170 G=127 B= 42 #AA7F2A &h2A7FAA 0x2A7FAA 
180                       R=170 G=127 B= 85 #AA7F55 &h557FAA 0x557FAA 
181                       R=170 G=127 B=127 #AA7F7F &h7F7FAA 0x7F7FAA 
182                       R=170 G=127 B=170 #AA7FAA &hAA7FAA 0xAA7FAA 
183                       R=170 G=127 B=212 #AA7FD4 &hD47FAA 0xD47FAA 
184                       R=170 G=170 B=  0 #AAAA00 &h00AAAA 0x00AAAA 
185                       R=170 G=170 B= 42 #AAAA2A &h2AAAAA 0x2AAAAA 
186                       R=170 G=170 B= 85 #AAAA55 &h55AAAA 0x55AAAA 
187                       R=170 G=170 B=127 #AAAA7F &h7FAAAA 0x7FAAAA 
188                       R=170 G=170 B=170 #AAAAAA &hAAAAAA 0xAAAAAA 
189                       R=170 G=170 B=212 #AAAAD4 &hD4AAAA 0xD4AAAA 
190                       R=170 G=212 B=  0 #AAD400 &h00D4AA 0x00D4AA 
191                       R=170 G=212 B= 42 #AAD42A &h2AD4AA 0x2AD4AA 
192                       R=170 G=212 B= 85 #AAD455 &h55D4AA 0x55D4AA 
193                       R=170 G=212 B=127 #AAD47F &h7FD4AA 0x7FD4AA 
194                       R=170 G=212 B=170 #AAD4AA &hAAD4AA 0xAAD4AA 
195                       R=170 G=212 B=212 #AAD4D4 &hD4D4AA 0xD4D4AA 
196                       R=212 G=  0 B=  0 #D40000 &h0000D4 0x0000D4 
197                       R=212 G=  0 B= 42 #D4002A &h2A00D4 0x2A00D4 
198                       R=212 G=  0 B= 85 #D40055 &h5500D4 0x5500D4 
199                       R=212 G=  0 B=127 #D4007F &h7F00D4 0x7F00D4 
200                       R=212 G=  0 B=170 #D400AA &hAA00D4 0xAA00D4 
201                       R=212 G=  0 B=212 #D400D4 &hD400D4 0xD400D4 
202                       R=212 G= 42 B=  0 #D42A00 &h002AD4 0x002AD4 
203                       R=212 G= 42 B= 42 #D42A2A &h2A2AD4 0x2A2AD4 
204                       R=212 G= 42 B= 85 #D42A55 &h552AD4 0x552AD4 
205                       R=212 G= 42 B=127 #D42A7F &h7F2AD4 0x7F2AD4 
206                       R=212 G= 42 B=170 #D42AAA &hAA2AD4 0xAA2AD4 
207                       R=212 G= 42 B=212 #D42AD4 &hD42AD4 0xD42AD4 
208                       R=212 G= 85 B=  0 #D45500 &h0055D4 0x0055D4 
209                       R=212 G= 85 B= 42 #D4552A &h2A55D4 0x2A55D4 
210                       R=212 G= 85 B= 85 #D45555 &h5555D4 0x5555D4 
211                       R=212 G= 85 B=127 #D4557F &h7F55D4 0x7F55D4 
212                       R=212 G= 85 B=170 #D455AA &hAA55D4 0xAA55D4 
213                       R=212 G= 85 B=212 #D455D4 &hD455D4 0xD455D4 
214                       R=212 G=127 B=  0 #D47F00 &h007FD4 0x007FD4 
215                       R=212 G=127 B= 42 #D47F2A &h2A7FD4 0x2A7FD4 
216                       R=212 G=127 B= 85 #D47F55 &h557FD4 0x557FD4 
217                       R=212 G=127 B=127 #D47F7F &h7F7FD4 0x7F7FD4 
218                       R=212 G=127 B=170 #D47FAA &hAA7FD4 0xAA7FD4 
219                       R=212 G=127 B=212 #D47FD4 &hD47FD4 0xD47FD4 
220                       R=212 G=170 B=  0 #D4AA00 &h00AAD4 0x00AAD4 
221                       R=212 G=170 B= 42 #D4AA2A &h2AAAD4 0x2AAAD4 
222                       R=212 G=170 B= 85 #D4AA55 &h55AAD4 0x55AAD4 
223                       R=212 G=170 B=127 #D4AA7F &h7FAAD4 0x7FAAD4 
224                       R=212 G=170 B=170 #D4AAAA &hAAAAD4 0xAAAAD4 
225                       R=212 G=170 B=212 #D4AAD4 &hD4AAD4 0xD4AAD4 
226                       R=212 G=212 B=  0 #D4D400 &h00D4D4 0x00D4D4 
227                       R=212 G=212 B= 42 #D4D42A &h2AD4D4 0x2AD4D4 
228                       R=212 G=212 B= 85 #D4D455 &h55D4D4 0x55D4D4 
229                       R=212 G=212 B=127 #D4D47F &h7FD4D4 0x7FD4D4 
230                       R=212 G=212 B=170 #D4D4AA &hAAD4D4 0xAAD4D4 
231                       R=212 G=212 B=212 #D4D4D4 &hD4D4D4 0xD4D4D4 


You can see that the brightest value here (for item 231) is #D4D4D4 compared to the earlier approach which gave a brighest value of #FFFFFF.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


134,267 views.

This is page 2, subject is 4 pages long:  [Previous page]  1  2 3  4  [Next page]

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]