View Single Post
Old 08-14-2006, 01:23 PM   #1
Kaspian's Avatar
Join Date: Oct 2004
Location: Europe
Posts: 51
rgb2bgr Converter

BGR (Blue, Green, Red) is an alternate arrangement of the RGB color model. It is used in KotOR area files (*.are) to define some colors <- will clarify this later.
So I made this web page, which converts RGB values or Hex code of color into BGR value and backwards.

It can convert:
  • RGB to Hex/BGR
  • Hex to RGB/BGR
  • BGR to RGB/Hex
You don't really need this, if you have the right knowledge and some calculator capable of decimal to hexadecimal (and backwards) conversion.

BGR = (Blue * 65536) + (Green * 256) + Red
BGR = take hexadecimal code of color, switch its Red and Blue values 123456 -> 563412 and convert it to decimal

Last edited by Kaspian; 08-16-2006 at 01:57 AM.
Kaspian is offline   you may: quote & reply,