Talk:What are the RGB values for the different colors?

From OHRRPGCE-Wiki

Jump to: navigation, search

Mike: A few things:

  • The OHR uses colour values from 0 - 63
  • There are 262143 such combinations
  • You can't list them all

NeoTA: Strange. The link in the RSS item for the change you just made is broken; it links to "http://gilgamesh.HamsterRepublic.com/wiki/ohrrpgce/index.php/Talk:What_are_the_RGB_values_for_the_different_colors?" instead of this page.

And that is (2^6 * 2^6 * 2^6) == 262144 colors. Points of reference are standard VGA and amiga AGA colors, these are specified in the same way.

I think we should just say 'to convert from paintprogram RGB values to OHR RGB values, divide the paintprogram RGB values by 4. Example: 85, 51, 0 (mid/dark brown) becomes 21,12,0; Another example: 0, 102, 255 (Sky Blue) becomes 0,25,63. If your paintprogram shows RGB values in the range 0..1.0 instead of 0..255, you can just multiply them by 63.'

Mike: Ah, the RSS feed must be only escaped once. The %3F that replaces the question mark is turned into a literal question mark, which tells the server to go to Talk:What are the RGB values for the different colors, and have a blank query string.

Anyway, yes, I did that math, and subtracted 1, since I was thinking of signed integers. My bad.

Either way, I still think this question is dumb. One's pictures are constrained to the master palette, and if you make your own palette, it's a moot point.

TMC: I think this question should either redirect to How do I mix colors together? or provide a stub with what Neo said ( and prehaps a couple examples) and link to How do I mix colors together? for further info. Knowledge of this is not really needed for the OHR anyway. You could argue that it is tricky for a beginner to work out the combination for a colour like brown, but the aforementioned article already covers this.

Also, HowdoImix? only covers the tweak palette command. This article is probably aimed at people who want to make their own master palette (though if you want to do that, you probably already know all about it). It just be sorta merged sideways (after removing all those unnedded colours) into HowdoImix?


NeoTA: You know, with the newly expanded range of the values expressible in HamsterScript, it might be useful to support hex; then, with a 'write color' command like this: write color (index, 6, 0xff80ff)

You could set palette colors much easier, and less explanation would be needed. BTW, I've updated the [Plot:Write color] page (about RGB 0-63 now becoming RGB 0-255 internally, and current problematic inconsistencies)

Mike C.: Right now, I'm working on a few new commands for just this reason (prompted by your edit, of course):

  • get/set color (32-bit colour replacements for read/write color)
  • RGB (Mix red, green and blue into a 32-bit colour)
  • extract color (grab a colour component from a 32-bit colour)

If I recall correctly, 95% of the universe use RGB (that is, 0x00RRGGBB), and so that is what I'm going to use.

NeoTA: 0x00RRGGBB is 24bit (and is the same as 0xRRGGBB), 0xRRGGBB00 is 32bit; Regardless of native byte ordering, hex is always written MSN (Most Significant Nibble) first. Not that it matters yet.

Personal tools